|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69504 - sandbox/enums/libs/enums/test
From: vicente.botet_at_[hidden]
Date: 2011-03-02 19:39:39
Author: viboes
Date: 2011-03-02 19:39:37 EST (Wed, 02 Mar 2011)
New Revision: 69504
URL: http://svn.boost.org/trac/boost/changeset/69504
Log:
Enums: FIx unresolved reference to size<EC3>::value when the type is std::size_t
Text files modified:
sandbox/enums/libs/enums/test/Ex.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: sandbox/enums/libs/enums/test/Ex.hpp
==============================================================================
--- sandbox/enums/libs/enums/test/Ex.hpp (original)
+++ sandbox/enums/libs/enums/test/Ex.hpp 2011-03-02 19:39:37 EST (Wed, 02 Mar 2011)
@@ -20,6 +20,7 @@
#include <boost/enums/val.hpp>
#include <boost/enums/enum_traits.hpp>
#include <boost/enums/enum_traiter.hpp>
+#include <cstddef>
BOOST_ENUM_CLASS_START(EC3, int) {
Enum0,
@@ -34,8 +35,9 @@
template <>
struct size<EC3>
{
- static const int value = 3;
+ static const std::size_t value;
};
+ const std::size_t size<EC3>::value = 3;
template <>
struct pos<EC3, EC3::Enum0>
{
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