Skip to content

Commit

Permalink
Add specialization for new struct deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Mar 13, 2024
1 parent 48413ee commit 39ed21f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cpp/csp/engine/Struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class StringStructField final : public NonNativeStructField
value( dest ) = value( src );
}

virtual void deepcopyFrom( const Struct * src, Struct * dest ) const
virtual void deepcopyFrom( const Struct * src, Struct * dest ) const override
{
value( dest ) = value( src );
}
Expand Down Expand Up @@ -320,6 +320,13 @@ class ArrayStructField : public NonNativeStructField
dest = src;
}

#ifdef __clang__
static void deepcopy( const boost::container::vector<bool> & src, boost::container::vector<bool> & dest )
{
dest = src;
}
#endif

static void deepcopy( const std::vector<std::string> & src, std::vector<std::string> & dest )
{
dest = src;
Expand Down

0 comments on commit 39ed21f

Please sign in to comment.