This code fails on bcc 5.5.1:

#include <boost/call_traits.hpp>

struct X { };
struct Y { };

class foo
{
public:
    template <typename U>
    foo(boost::call_traits<U>::param_type v)
    { }

};

int main(int argc, char* argv[])
{
    X x;
    foo f(x);
    (void) f; // necessary to make bcc generate the c'tor call above
}

[C++ Error] CallTraits.cpp(20): E2285 Could not find a match for
'foo::foo(X)'

Any ideas?

Dave



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to