|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54642 - in sandbox/itl/boost/validate: gentor loki_xt
From: afojgo_at_[hidden]
Date: 2009-07-04 08:12:04
Author: jofaber
Date: 2009-07-04 08:12:03 EDT (Sat, 04 Jul 2009)
New Revision: 54642
URL: http://svn.boost.org/trac/boost/changeset/54642
Log:
Fixed minor compiler flaws in itl_xt. Trying to compile itl_xt with gcc-4.1.0. The version does not compile meta programming code of LaBatea. There are ambiguities in matching partial template instantiations that msvc can resolve.
Text files modified:
sandbox/itl/boost/validate/gentor/rangegentor.hpp | 4 ++--
sandbox/itl/boost/validate/loki_xt/Tuple.h | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
Modified: sandbox/itl/boost/validate/gentor/rangegentor.hpp
==============================================================================
--- sandbox/itl/boost/validate/gentor/rangegentor.hpp (original)
+++ sandbox/itl/boost/validate/gentor/rangegentor.hpp 2009-07-04 08:12:03 EDT (Sat, 04 Jul 2009)
@@ -48,12 +48,12 @@
interval<Type> last()const;
void setLowerBoundRange(int lwb, int upb)
- { setLowerBoundRange(rightopen_interval(lwb,upb)); }
+ { setLowerBoundRange(interval<int>::rightopen(lwb,upb)); }
void setLowerBoundRange(const interval<int>& range)
{ BOOST_ASSERT(range.is_rightopen()||range.is_closed()); _lwbGentor.setRange(range); }
void setUpperBoundRange(int lwb, int upb)
- { setUpperBoundRange(rightopen_interval(lwb,upb)); }
+ { setUpperBoundRange(interval<int>::rightopen(lwb,upb)); }
void setUpperBoundRange(const interval<int>& range)
{ BOOST_ASSERT(range.is_rightopen()||range.is_closed()); _upbGentor.setRange(range); }
Modified: sandbox/itl/boost/validate/loki_xt/Tuple.h
==============================================================================
--- sandbox/itl/boost/validate/loki_xt/Tuple.h (original)
+++ sandbox/itl/boost/validate/loki_xt/Tuple.h 2009-07-04 08:12:03 EDT (Sat, 04 Jul 2009)
@@ -45,6 +45,7 @@
#include <boost/validate/loki/EmptyType.h>
#include <boost/validate/loki_xt/TypelistGentor.h>
+#include <boost/itl/type_traits/to_string.hpp>
namespace Loki
{
@@ -740,7 +741,7 @@
static std::string Do(const TupleT& obj)
{
- return to_string<HeadType>::apply(get<0>(obj));
+ return boost::itl::to_string<HeadType>::apply(get<0>(obj));
}
};
@@ -752,7 +753,7 @@
static std::string Do(const TupleT& obj)
{
- return to_string<HeadType>::apply(get<0>(obj))
+ return boost::itl::to_string<HeadType>::apply(get<0>(obj))
+ ", " + Stringer<TailClass, i-1>::Do(obj);
}
};
@@ -832,7 +833,7 @@
{
static std::string apply(const SourceT& src)
{
- return itl::to_string<SourceT>::apply(src);
+ return boost::itl::to_string<SourceT>::apply(src);
}
};
// ---------------------------------------------------------------------------
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