Boost logo

Boost Users :

From: Patrick Mézard (pmezard_at_[hidden])
Date: 2005-03-03 02:53:42


Gennadiy Rozental <gennadiy.rozental <at> thomson.com> writes:

> Why do you need unnamed namespace? Remove it and it will all work.

The type being tested belongs to a library. I do not need the operator<< at the
library level, only in the test for BOOST_CHECK_EQUAL support. So I define the
operator at in the test scope, in an anonymous namespace because there is no
need to export the symbol. That's good practice for me, maybe I am wrong ?

Patrick Mézard


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