
Hi,
I wonder if there is some easy way to express the following incorrect
code in a correct way?
typedef template<class T> boost::function

Roland Bock wrote:
Hi,
I wonder if there is some easy way to express the following incorrect code in a correct way?
typedef template<class T> boost::function
foo_function; template<> foo_function<int> my_foo = bind(example_function);
Something like template< typename T > struct my_function { typedef boost::function< void( constT& ) > type; }; my_function<int>::type my_foo = bind( example_function ); ? Cheers, Rutger

Rutger ter Borg wrote:
Roland Bock wrote:
Hi,
I wonder if there is some easy way to express the following incorrect code in a correct way?
typedef template<class T> boost::function
foo_function; template<> foo_function<int> my_foo = bind(example_function);
Something like
template< typename T > struct my_function { typedef boost::function< void( constT& ) > type; };
my_function<int>::type my_foo = bind( example_function );
?
Cheers,
Rutger
Great! That's it :-) Thanks and regards, Roland
participants (2)
-
Roland Bock
-
Rutger ter Borg