Skip to content

Commit 4a04443

Browse files
committed
Replaced cpp17::optional with std::optional in scm-to-cereal.cpp
1 parent b06ee68 commit 4a04443

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

utils/scm-to-cereal.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020
#include "eos/morphablemodel/MorphableModel.hpp"
2121
#include "eos/morphablemodel/io/cvssp.hpp"
22-
#include "eos/cpp17/optional.hpp"
2322

2423
#include "boost/program_options.hpp"
2524

@@ -70,8 +69,8 @@ int main(int argc, char* argv[])
7069
return EXIT_FAILURE;
7170
}
7271

73-
cpp17::optional<std::string> isomapfile_optional =
74-
isomapfile.empty() ? cpp17::nullopt : cpp17::optional<std::string>(isomapfile);
72+
std::optional<std::string> isomapfile_optional =
73+
isomapfile.empty() ? std::nullopt : std::optional<std::string>(isomapfile);
7574

7675
// Load the .scm Morphable Model and save it as cereal model:
7776
morphablemodel::MorphableModel morphable_model =
@@ -81,7 +80,7 @@ int main(int argc, char* argv[])
8180
{
8281
// Save only the shape model - to generate the public sfm_shape_3448.bin
8382
const morphablemodel::MorphableModel shape_only_model(morphable_model.get_shape_model(),
84-
morphablemodel::PcaModel(), cpp17::nullopt,
83+
morphablemodel::PcaModel(), std::nullopt,
8584
morphable_model.get_texture_coordinates());
8685
morphablemodel::save_model(shape_only_model, outputfile);
8786
} else

0 commit comments

Comments
 (0)