Skip to content
Snippets Groups Projects
Commit 5f5d8df8 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix ObjectFactory class

parent 7b3cfb85
No related branches found
No related tags found
No related merge requests found
......@@ -150,9 +150,9 @@ public:
* \brief
* Specialisation of the make method for objects that are not from the object hierarchy of Algorithms library
*/
template < class Type, typename std::enable_if < ! std::is_convertible < Type *, object::ObjectBase * >::value, Type >::type * = nullptr >
template < class Type, typename std::enable_if < ! std::is_convertible < const Type &, const object::ObjectBase & >::value, typename std::decay < Type >::type >::type * = nullptr >
static Object make ( Type && data ) {
return Object ( object::AnyObject < Type > ( std::forward < Type > ( data ) ) );
return Object ( object::AnyObject < typename std::decay < Type >::type > ( std::forward < Type && > ( data ) ) );
}
 
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment