Skip to content

Commit 55e4708

Browse files
committed
Add TObject2D/3D constructors
1 parent 4c227b2 commit 55e4708

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

modules/mrpt_math/include/mrpt/math/TObject2D.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ struct TObject2D
3737

3838
variant_t data;
3939

40+
TObject2D(variant_t d) : data(std::move(d)) {}
4041
TObject2D() = default;
4142
~TObject2D() = default;
4243

modules/mrpt_math/include/mrpt/math/TObject3D.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct TObject3D
3838

3939
variant_t data;
4040

41+
TObject3D(variant_t d) : data(std::move(d)) {}
4142
TObject3D() = default;
4243
~TObject3D() = default;
4344

0 commit comments

Comments
 (0)