Interest poll: Define named char/wchar_t string constants in header files

25 Mar
2005
25 Mar
'05
3:16 a.m.
Following the guidelines for Boost submission at <url: http://www.boost.org/more/submission_process.htm#interest> this is a request for interest. I've posted the file + one little file it depends on at <url: http://groups.yahoo.com/group/boost/files/named_strings/>. This utility lets you use literal strings in char/wchar_t-templated code (and even as template arguments): you can write things such as BOOST_DEF_NAMED_STRING( eq, "=" ) template< typename Char > bool is_assignment_op( std::basic_string<Char> const& s ) { return s == literal::eq::s<Char>(); }
7385
Age (days ago)
7385
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alf P. Steinbach