|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51210 - trunk/libs/random
From: steven_at_[hidden]
Date: 2009-02-11 22:03:03
Author: steven_watanabe
Date: 2009-02-11 22:03:02 EST (Wed, 11 Feb 2009)
New Revision: 51210
URL: http://svn.boost.org/trac/boost/changeset/51210
Log:
Correct stringizing
Text files modified:
trunk/libs/random/instantiate.cpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Modified: trunk/libs/random/instantiate.cpp
==============================================================================
--- trunk/libs/random/instantiate.cpp (original)
+++ trunk/libs/random/instantiate.cpp 2009-02-11 22:03:02 EST (Wed, 11 Feb 2009)
@@ -20,6 +20,7 @@
#include <vector>
#include <boost/random.hpp>
#include <boost/config.hpp>
+#include <boost/preprocessor/stringize.hpp>
#include <boost/test/test_tools.hpp>
#include <boost/test/included/test_exec_monitor.hpp>
@@ -288,15 +289,11 @@
typedef boost::random::lagged_fibonacci<boost::uint32_t, 24, 607, 273> lagged_fibonacci;
-#define BOOST_RANDOM_STRINGIZE(x) #x
-
typedef BOOST_RANDOM_URNG_TEST::result_type result_type;
- instantiate_urng(BOOST_RANDOM_STRINGIZE(BOOST_RANDOM_URNG_TEST), BOOST_RANDOM_URNG_TEST(), static_cast<result_type>(0));
+ instantiate_urng(BOOST_PP_STRINGIZE(BOOST_RANDOM_URNG_TEST), BOOST_RANDOM_URNG_TEST(), static_cast<result_type>(0));
BOOST_RANDOM_URNG_TEST* type_ptr = 0;
extra_tests(type_ptr);
-#undef BOOST_RANDOM_STRINGIZE
-
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk