Opened 19 years ago

Closed 19 years ago

#149 closed Bugs (Out of Date)

MSVC7.1 format problem

Reported by: nobody Owned by: samuel_k
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

I tried a simple usage of format and str under MSVC7.1 

#include <boost/format.hpp>
#include <iostream>
using namespace std;

void main()
{
   using boost::format;
   using boost::io::group;
   using boost::io::str;

    std::string s;
    s= str( format(" %d %d ") % 11 % 22 );
    assert( s == " 11 22 ");
    cout << s << endl;
}

and it failed with this error plus many more...

C:\boost\site\boost\format\feed_args.hpp(79) : error
C2065: 'disambiguater' : undeclared identifier

in feed_args.hpp, line 73, I commented out the
BOOST_WORKAROUND section for MSVC. Everything compiled
just fine and ran as expected.

I'd send you a diff, but since I'm not completely
comfortable with all of the BOOST defines, I'll let
somebody more qualified do that.

my email is carter.l.smithhart_AT_boeing.com

Change History (1)

comment:1 by samuel_k, 19 years ago

Status: assignedclosed
Logged In: YES 
user_id=545049

the code in Boost release 1.30 is prior to MSVC 7.1
The fix to support newer MSVC compilers is already
implemented in CVS since 2003/04/25.

Note: See TracTickets for help on using tickets.