#include <observable.h>
Helper class to detect and convert to the right Result<T> for ObservableRef::Notify() This is necessary because the Notify returns Result<Data>. The Data is created locally on the stack. Now all return types which return a reference needs to convert the value into a value instead of returning a reference.
Public Types | |
| using | type = Result< T > |
| using | vartype = T |
| using | resulttype = Result< typename std::decay< T >::type > |
Static Public Member Functions | |
| static resulttype | ReturnData (Data &&val) |
| using vartype = T |
| using resulttype = Result<typename std::decay<T>::type> |
|
static |