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.


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


> 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:

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