Skip to content

Commit

Permalink
fix(Mapping): missing default constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
BotellaA committed Oct 9, 2024
1 parent 172d648 commit bfd3533
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/geode/basic/mapping.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ namespace geode
class BijectiveMapping : public MappingBase< T1, T2, OneValueStorage >
{
public:
BijectiveMapping() = default;
BijectiveMapping( BijectiveMapping&& other ) = default;
BijectiveMapping& operator=( BijectiveMapping&& other ) = default;

void map( const T1& in, const T2& out )
{
if( this->has_mapping_input( in ) )
Expand Down Expand Up @@ -184,6 +188,10 @@ namespace geode
class GenericMapping : public MappingBase< T1, T2, MultipleValueStorage >
{
public:
GenericMapping() = default;
GenericMapping( GenericMapping&& other ) = default;
GenericMapping& operator=( GenericMapping&& other ) = default;

void map( const T1& in, const T2& out )
{
this->in2out_mapping()[in].push_back( out );
Expand Down

0 comments on commit bfd3533

Please sign in to comment.