Skip to content

Commit

Permalink
Update fast_any
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Aug 11, 2023
1 parent 3e965b6 commit 7dfde3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions include/dspatch/SignalBus.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class DLLEXPORT SignalBus final

inline void ClearAllValues();

inline fast_any::fast_any_type GetType( int signalIndex ) const;
inline const fast_any::type_info& GetType( int signalIndex ) const;

private:
std::vector<fast_any::fast_any> _signals;
Expand Down Expand Up @@ -141,7 +141,7 @@ inline void SignalBus::SetValue( int signalIndex, const ValueType& newValue )
{
if ( (size_t)signalIndex < _signals.size() )
{
_signals[signalIndex].emplace( newValue );
_signals[signalIndex].emplace<ValueType>( newValue );
}
}

Expand All @@ -150,15 +150,15 @@ inline void SignalBus::MoveValue( int signalIndex, ValueType&& newValue )
{
if ( (size_t)signalIndex < _signals.size() )
{
_signals[signalIndex].emplace( std::move( newValue ) );
_signals[signalIndex].emplace<ValueType>( std::move( newValue ) );
}
}

inline void SignalBus::SetSignal( int toSignalIndex, const fast_any::fast_any& fromSignal )
{
if ( (size_t)toSignalIndex < _signals.size() )
{
_signals[toSignalIndex].emplace( fromSignal );
_signals[toSignalIndex] = fromSignal;
}
}

Expand All @@ -178,7 +178,7 @@ inline void SignalBus::ClearAllValues()
}
}

inline fast_any::fast_any_type SignalBus::GetType( int signalIndex ) const
inline const fast_any::type_info& SignalBus::GetType( int signalIndex ) const
{
if ( (size_t)signalIndex < _signals.size() )
{
Expand Down
2 changes: 1 addition & 1 deletion subprojects/fast_any
Submodule fast_any updated 3 files
+24 −0 LICENSE
+26 −0 README.md
+42 −13 fast_any.h

0 comments on commit 7dfde3d

Please sign in to comment.