[parameter] BOOST_PARAMETER_KEYWORD does not put identifiers in anonymous namespace.

Hi, the tutorial says: The declaration of the visitor keyword you see here is equivalent to: namespace graphs { namespace tag { struct visitor; } namespace { boost::parameter::keyword<tag::visitor>& visitor = boost::parameter::keyword<tag::visitor>::get(); } } However, BOOST_PARAMETER_KEYWORD(tag, visitor) expands to namespace tag { struct visitor; } ::boost::parameter::keyword<tag::visitor>& visitor = ::boost::parameter::keyword<tag::visitor>::get(); Regards, m Send instant messages to your online friends http://au.messenger.yahoo.com

Martin Wille <mw8329@yahoo.com.au> writes:
Hi,
the tutorial says:
The declaration of the visitor keyword you see here is equivalent to:
namespace graphs { namespace tag { struct visitor; } namespace { boost::parameter::keyword<tag::visitor>& visitor = boost::parameter::keyword<tag::visitor>::get(); } }
However, BOOST_PARAMETER_KEYWORD(tag, visitor) expands to
namespace tag { struct visitor; } ::boost::parameter::keyword<tag::visitor>& visitor = ::boost::parameter::keyword<tag::visitor>::get();
Yikes! That's a serious bug!! Will fix immediately. Doug, I would like to make the fix on the release branch also, OK? -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams wrote:
Yikes! That's a serious bug!!
I thought so.
Will fix immediately.
Thanks! m Send instant messages to your online friends http://au.messenger.yahoo.com
participants (2)
-
David Abrahams
-
Martin Wille