|
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 {
BOOST_STATIC_ASSERT(...)
}
Is there any reason not to recommend the anonymous namespace, which
guarantees a unique name?
-Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk