mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-17 14:22:13 +02:00
result_of and polymorphic function obj compatibility
[SVN r37962]
This commit is contained in:
@ -26,8 +26,11 @@
|
||||
|
||||
struct square
|
||||
{
|
||||
template<typename T>
|
||||
struct result;
|
||||
|
||||
template <typename T>
|
||||
struct result
|
||||
struct result<square(T)>
|
||||
{
|
||||
typedef int type;
|
||||
};
|
||||
@ -41,8 +44,11 @@ struct square
|
||||
|
||||
struct add
|
||||
{
|
||||
template<typename T>
|
||||
struct result;
|
||||
|
||||
template <typename A, typename B>
|
||||
struct result
|
||||
struct result<add(A,B)>
|
||||
{
|
||||
typedef int type;
|
||||
};
|
||||
|
Reference in New Issue
Block a user