Skip to content

Commit

Permalink
- Delete copy constructor of callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Dacquay committed Mar 11, 2024
1 parent d147db6 commit 1edcaa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/include/util/callback.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ namespace VTX::Util
public:
using Func = std::function<void( const Args &... )>;

Callback() = default;
Callback( const Callback & ) = delete;

inline const Func * const add( const Func & p_callback )
{
_callbacks.push_back( std::make_unique<Func>( p_callback ) );
Expand Down

0 comments on commit 1edcaa1

Please sign in to comment.