Boost logo

Boost :

Subject: Re: [boost] [Filesystem] error including filesystem v3 with icpc -std=c++0x
From: Galen Andrew (pupochik_at_[hidden])
Date: 2011-04-19 12:55:52


> > Hello,
> >
> > Including boost/filesystem.hpp is giving me errors using Intel
> > compiler in Linux with -std=c++0x that look like
> >
> > > boost/filesystem/v3/operations.hpp(303): error: name followed by "::"
> > must be a class or namespace name
> > {detail::copy_file(from, to,
> > copy_option::fail_if_exists);}
> > ^
> > It compiles fine under g++ -std=c++0x.
>
> What happens with the Intel compiler if you don't specify -std=c++0x?

Without -std=c++0x those errors are gone, but a similar error pops up
in another boost library I'm using

boost/random/variate_generator.hpp(209): error: name followed by "::"
must be a class or namespace name
    typedef typename random::detail::engine_helper<have_int,
want_int>::BOOST_NESTED_TEMPLATE impl<decorated_engine, typename
Distribution::input_type>::type internal_engine_type;

                                                       ^

> The regression tests are passing for Intel on Linux, but it doesn't
> look like any of them specify -std=c++0x
>
> What version of the Intel compiler are you using?

 Version 12.0.2.137 Build 20110112

>
> What version of Boost are you using?

1.46.1

Thanks!


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