- Timestamp:
- Dec 27, 2015, 8:36:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/command/Functor.h
r10979 r10980 407 407 template <bool isconst, class... Params> struct FunctorCaller<void, void, isconst, Params...> { static inline MultiType call(typename detail::FunctionPointer<void, void, isconst, Params...>::Type functionPointer, void*, const Params&... parameters) { (*functionPointer)(parameters...); return MultiType::Null; } }; 408 408 409 // Helper class, used to identify the header of a function-pointer (independent of its class)410 template <class R, class... Params>411 struct FunctorHeaderIdentifier412 {};413 414 409 // Helper class to determine if a function has a returnvalue 415 410 template <class T> … … 529 524 virtual const std::type_index getHeaderIdentifier() const override 530 525 { 531 return typeid( detail::FunctorHeaderIdentifier<R, Params...>);526 return typeid(typename detail::FunctionPointer<R, void, false, Params...>::Type); 532 527 } 533 528 … … 564 559 const std::type_index getTypelistIdentifier(detail::type_list<Types...>) const 565 560 { 566 return typeid( detail::FunctorHeaderIdentifier<R, Types...>);561 return typeid(typename detail::FunctionPointer<R, void, false, Types...>::Type); 567 562 } 568 563 };
Note: See TracChangeset
for help on using the changeset viewer.