Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2002-08-26 01:25:34


  From: Victor A. Wagner, Jr.

  I get the following warning:
  c:\Boost Releases\boost\boost\lexical_cast.hpp(47) : warning C4224: nonstandard extension used : formal parameter 'arg' was previously defined as a type

  I believe this is a new warning, I'm pretty sure I had an error/warning free program late last week.

  The only "type" I can find which may be referred to is in boost/bind/arg.hpp
  which is referenced from boost/bind.hpp

  Is there some name collision that needs to be looked into between bind and lexical_cast ??

  I'm _not_ representing that VC++ is accurately reporting that this is a non-standard extension (I really don't know), but thought a heads up might be in order.
To test this, I tried the following on Comeau C++ online, and it compiles without warnings in strict mode. However, does anybody know if this code is ok? I wouldn't trust MSVC's standards conformance any farther than I could throw the CD. :)

typedef int Test;

void f(double Test)
{
}

Regards,

Terje



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk