Update of /cvsroot/boost/boost/boost/xpressive/detail/utility
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv823/detail/utility
Modified Files:
literals.hpp
Log Message:
still more work to support non-char data
Index: literals.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/detail/utility/literals.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- literals.hpp 11 Dec 2005 17:41:48 -0000 1.4
+++ literals.hpp 30 May 2007 08:34:03 -0000 1.5
@@ -14,6 +14,7 @@
#endif
#include <boost/config.hpp> // for BOOST_STATIC_CONSTANT
+#include <boost/cstdint.hpp> // for BOOST_STATIC_CONSTANT
#include <boost/detail/workaround.hpp>
namespace boost { namespace xpressive { namespace detail
@@ -22,27 +23,18 @@
///////////////////////////////////////////////////////////////////////////////
// char_literal
//
-template<typename Char, char Ch, wchar_t Wch>
+template<typename Char, boost::intmax_t Ch, boost::intmax_t Wch>
struct char_literal;
-template<char Ch, wchar_t Wch>
-struct char_literal<char, Ch, Wch>
-{
- BOOST_STATIC_CONSTANT(char, value = Ch);
-};
-
-template<char Ch, wchar_t Wch>
-struct char_literal<wchar_t, Ch, Wch>
+template<typename Char, boost::intmax_t Ch>
+struct char_literal<Char, Ch, Ch>
{
- BOOST_STATIC_CONSTANT(wchar_t, value = Wch);
+ BOOST_STATIC_CONSTANT(boost::intmax_t, value = Ch);
};
#ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
-template<char Ch, wchar_t Wch>
-char const char_literal<char, Ch, Wch>::value;
-
-template<char Ch, wchar_t Wch>
-wchar_t const char_literal<wchar_t, Ch, Wch>::value;
+template<typename Char, boost::intmax_t Ch>
+boost::intmax_t const char_literal<Char, Ch, Ch>::value;
#endif
template<typename Ch>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs