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@lists.boost.org> on behalf of Stefan Floeren <lists@steef389.eu> Sent: Monday, May 4, 2015 4:51 PM To: boost@lists.boost.org 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