Boost logo

Boost :

Subject: Re: [boost] [filesystem] copy_file compilation error
From: Rob Conde (rob.conde_at_[hidden])
Date: 2015-05-05 16:12:53


Actually, I think the emulation is fine. You have to do:

BOOST_SCOPED_ENUM(copy_option) opt(copy_option::overwrite_if_exists);

and then it works as expected.

Rob

________________________________________
From: Boost <boost-bounces_at_[hidden]> on behalf of Stefan Floeren <lists_at_steef389.eu>
Sent: Monday, May 4, 2015 4:51 PM
To: boost_at_[hidden]
Subject: Re: [boost] [filesystem] copy_file compilation error

Hi,

> is this a bug in filesystem on gcc, a bug in gcc, a non-standard
behavior in visual studio 2013, or an intended change?
This seems to be a problem with scoped_enum emulation. It works, if you
use gcc in C++11-Mode (at least with 4.9.2) or directly pass the
copy_option to the function.

Best regards,
Stefan Floeren

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


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