Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-06-10 09:47:59


AMDG

Paul S. Strauss wrote:
> I can't seem to get BOOST_CHECK_EQUAL with std::type_info
> instances to compile with g++,
> version (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)
> <snip>
> g++ complains that there isn't an operator<< for type_info
> in the BOOST_CHECK_EQUAL, even though it is used just fine
> on the previous line.

Your operator<< cannot be found by ADL. There are a couple of ways
around this.
* you can put operator<< in namespace std. (Technically illegal)
* you can declare it before including any Boost.Test headers.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net