Subject: [Boost-bugs] [Boost C++ Libraries] #6525: format atldbgmem.h m_storage VS2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-05 15:36:02
#6525: format atldbgmem.h m_storage VS2010
----------------------------------+-----------------------------------------
Reporter: epodkopaev@⦠| Owner: samuel_krempp
Type: Bugs | Status: new
Milestone: To Be Determined | Component: format
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
----------------------------------+-----------------------------------------
Hi,
Format component of Boost 1.48 doesn't compile with memory debugging
enabled in VS2010.
With <atldbgmem.h> included in stdafx.h (precompiled header), compiler
says error:
{{{
1>d:\boost\boost_1_48_0\boost\optional\optional.hpp(346): error C2061:
syntax error : identifier 'm_storage'
1> d:\boost\boost_1_48_0\boost\optional\optional.hpp(345) : while
compiling class template member function 'void
boost::optional_detail::optional_base<T>::construct(const std::locale &)'
1> with
1> [
1> T=boost::io::detail::locale_t
1> ]
1> d:\boost\boost_1_48_0\boost\optional\optional.hpp(500) : see
reference to class template instantiation
'boost::optional_detail::optional_base<T>' being compiled
1> with
1> [
1> T=boost::io::detail::locale_t
1> ]
1> d:\boost\boost_1_48_0\boost\format\internals.hpp(56) : see
reference to class template instantiation 'boost::optional<T>' being
compiled
1> with
1> [
1> T=boost::io::detail::locale_t
1> ]
1> d:\boost\boost_1_48_0\boost\format\internals.hpp(57) : see
reference to class template instantiation
'boost::io::detail::stream_format_state<Ch,Tr>' being compiled
1>
1>Build FAILED.
}}}
The code itself:
{{{
#include <boost/format.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
boost::format fmt("Value: %d\nString: %s\n");
fmt % 10 % _T("My string");
printf(fmt.str().c_str());
return 0;
}
}}}
Without atldbgmem.h included the code compiles with no error messages
Regards,
Evgeniy
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6525> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC