3 Mar
2005
3 Mar
'05
4:09 a.m.
namespace testns {
struct Test { Test(std::string const& s_) : s(s_) {}
bool operator==(Test const& t) const { return s==t.s; }
std::string s; };
namespace {
std::ostream& operator<<(std::ostream& o, Test const& t) { return o<
void free_test_function() { Test t1("test1"), t2("test2"); BOOST_CHECK_EQUAL(t1, t2); }
} //namespace
} //namespace testns
Why do you need unnamed namespace? Remove it and it will all work. Gennadiy