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


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

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


Joel de Guzman

Boost list run by bdawes at, gregod at, cpdaniel at, john at