Skip to content

Commit d18fddf

Browse files
committed
Replaced cpp17::optional in Matlab bindings
They're no longer supported but this won't hurt in any case.
1 parent b71c5ea commit d18fddf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

matlab/+eos/+fitting/private/fitting.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "eos/morphablemodel/Blendshape.hpp"
2626
#include "eos/morphablemodel/EdgeTopology.hpp"
2727
#include "eos/morphablemodel/MorphableModel.hpp"
28-
#include "eos/cpp17/optional.hpp"
2928

3029
#include "mexplus_eigen.hpp"
3130
#include "mexplus_eos_types.hpp"
@@ -37,6 +36,7 @@
3736
#include "mex.h"
3837

3938
#include <string>
39+
#include <optional>
4040

4141
void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[])
4242
{
@@ -90,15 +90,15 @@ void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[])
9090
const auto morphable_model = morphablemodel::load_model(morphablemodel_file);
9191
const auto blendshapes = morphablemodel::load_blendshapes(blendshapes_file);
9292
morphable_model_with_expressions = morphablemodel::MorphableModel(
93-
morphable_model.get_shape_model(), blendshapes, morphable_model.get_color_model(), cpp17::nullopt,
93+
morphable_model.get_shape_model(), blendshapes, morphable_model.get_color_model(), std::nullopt,
9494
morphable_model.get_texture_coordinates());
9595
}
9696
const core::LandmarkMapper landmark_mapper(mapper_file);
9797
const auto edge_topology = morphablemodel::load_edge_topology(edgetopo_file);
9898
const auto contour_landmarks = fitting::ContourLandmarks::load(contour_lms_file);
9999
const auto model_contour = fitting::ModelContour::load(model_cnt_file);
100-
const cpp17::optional<int> num_shape_coefficients_to_fit =
101-
num_shape_coeffs == -1 ? cpp17::nullopt : cpp17::optional<int>(num_shape_coeffs);
100+
const std::optional<int> num_shape_coefficients_to_fit =
101+
num_shape_coeffs == -1 ? std::nullopt : std::optional<int>(num_shape_coeffs);
102102

103103
// Now do the actual fitting:
104104
core::Mesh mesh;

0 commit comments

Comments
 (0)