Skip to content

Commit bfd3533

Browse files
committed
fix(Mapping): missing default constructors
1 parent 172d648 commit bfd3533

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/geode/basic/mapping.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ namespace geode
126126
class BijectiveMapping : public MappingBase< T1, T2, OneValueStorage >
127127
{
128128
public:
129+
BijectiveMapping() = default;
130+
BijectiveMapping( BijectiveMapping&& other ) = default;
131+
BijectiveMapping& operator=( BijectiveMapping&& other ) = default;
132+
129133
void map( const T1& in, const T2& out )
130134
{
131135
if( this->has_mapping_input( in ) )
@@ -184,6 +188,10 @@ namespace geode
184188
class GenericMapping : public MappingBase< T1, T2, MultipleValueStorage >
185189
{
186190
public:
191+
GenericMapping() = default;
192+
GenericMapping( GenericMapping&& other ) = default;
193+
GenericMapping& operator=( GenericMapping&& other ) = default;
194+
187195
void map( const T1& in, const T2& out )
188196
{
189197
this->in2out_mapping()[in].push_back( out );

0 commit comments

Comments
 (0)