Skip to content

Commit

Permalink
chore: simplify Formulation constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Mar 1, 2024
1 parent d7508b1 commit b55ce31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/realizations/config/formulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ namespace realization{
*
* Default objects have an "" type and and empty property map.
*/
Formulation():type(std::string()), parameters(geojson::PropertyMap()){}
Formulation() = default;

/**
* @brief Construct a new Formulation object
*
* @param type formulation type represented
* @param params formulation parameter mapping
*/
Formulation(std::string& type, geojson::PropertyMap params):type(std::move(type)), parameters(params){}
Formulation(std::string type, geojson::PropertyMap params):type(std::move(type)), parameters(params){}

/**
* @brief Construct a new Formulation object from a boost property tree
Expand Down

0 comments on commit b55ce31

Please sign in to comment.