Problem using enable_if with gcc 3.4.4

Hi,
I am having some trouble using enable_if with gcc 3.4.4 (code below). Basically it is working as expected with functions ("bar"), but using it on member functions of a class ("Foo"), I am getting the error that this member function cannot be overloaded.
Visual 2008 and gcc4 seem to be ok with it though.
Any explanation and work around appreciated.
B.
--
#include <iostream>
#include

On Thu, 3 Dec 2009, gao_bolin@voila.fr wrote:
Try making the enable_if a parameter of the member function:
class Foo
{
public:
template < typename T >
int bar(
int x,
typename boost::enable_if
participants (2)
-
gao_bolin@voila.fr
-
Jeremiah Willcock