Subject: Re: [Boost-bugs] [Boost C++ Libraries] #231: Graph Header Clashes With Format Header
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-21 02:50:24
#231: Graph Header Clashes With Format Header
-----------------------+----------------------------------------------------
Reporter: schmoo2k | Owner: jsiek
Type: Bugs | Status: reopened
Milestone: | Component: graph
Version: None | Severity: Problem
Resolution: | Keywords:
-----------------------+----------------------------------------------------
Old description:
> {{{
> The following code produces many errors in MSVC71
>
> #include <boost/format.hpp>
> #include <boost/graph/adjacency_list.hpp>
>
> int _tmain(int argc, _TCHAR* argv[])
> {
> std::string s = (boost::format("%1% %2% %
> 3%") % "a" % "b" % "c").str();
> return 0;
> }
>
> }}}
New description:
{{{
The following code produces many errors in MSVC71
#include <boost/format.hpp>
#include <boost/graph/adjacency_list.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
std::string s = (boost::format("%1% %2% %
3%") % "a" % "b" % "c").str();
return 0;
}
}}}
-- Comment (by jewillco): I tested that code (with `_tmain` changed to `main` and `_TCHAR` to `char`) and it worked just fine for me on GCC 4.7.0 on Linux. Do you have a different test program that shows the problem? -- Ticket URL: <https://svn.boost.org/trac/boost/ticket/231#comment:9> 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:09 UTC