Boost logo

Boost :

From: Jeff King (peff-boost_at_[hidden])
Date: 2001-11-24 13:55:29

In the static_assert.hpp documentation, it is recommended to put
BOOST_STATIC_ASSERT()s at namespace scope into a "unique" namespace to
avoid complaints of duplicate typedefs from the compiler. The example
given is:

namespace my_conditions {

Is there any reason not to recommend the anonymous namespace, which
guarantees a unique name?


Boost list run by bdawes at, gregod at, cpdaniel at, john at