Boost logo

Boost :

Subject: [boost] [lexical_cast][random] ADL problem with gcc c++11
From: Joel de Guzman (joel_at_[hidden])
Date: 2012-03-19 07:47:59


Hi,

I can't get this to compile on gcc-4.6.1 with -std=c++0x flag:

  #include <boost/random.hpp>

  int main()
  {
    return 0;
  }

I'm getting an error in lexical_cast:

C:\dev\boost/boost/lexical_cast.hpp:1323:120: error: there are no arguments to 'swprintf'
that depend on a template parameter, so a declaration of 'swprintf' must be available
[-fpermissive]

Obviously, I can compile with -fpermissive, but I'd like to report this anyway.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

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