|
Boost-Commit : |
From: matias.capeletto_at_[hidden]
Date: 2007-12-20 16:56:39
Author: matias
Date: 2007-12-20 16:56:39 EST (Thu, 20 Dec 2007)
New Revision: 42220
URL: http://svn.boost.org/trac/boost/changeset/42220
Log:
add explicit std::string initialization
Text files modified:
trunk/libs/bimap/example/bimap_and_boost/foreach.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/bimap/example/bimap_and_boost/foreach.cpp
==============================================================================
--- trunk/libs/bimap/example/bimap_and_boost/foreach.cpp (original)
+++ trunk/libs/bimap/example/bimap_and_boost/foreach.cpp 2007-12-20 16:56:39 EST (Thu, 20 Dec 2007)
@@ -88,13 +88,13 @@
//[ code_bimap_and_boost_foreach_using_range
BOOST_FOREACH( bm_type::left_reference p,
- ( bm.left.range( "1" <= _key, _key < "3" ) ))
+ ( bm.left.range( std::string("1") <= _key, _key < std::string("3") ) ))
{
++p.second;
}
BOOST_FOREACH( bm_type::left_const_reference p,
- ( bm.left.range( "1" <= _key, _key < "3" ) ))
+ ( bm.left.range( std::string("1") <= _key, _key < std::string("3") ) ))
{
std::cout << p.first << "-->" << p.second << std::endl;
}
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