Boost logo

Boost :

Subject: Re: [boost] [review] Review of Nowide (Unicode) starts today
From: Artyom Beilis (artyom.beilis_at_[hidden])
Date: 2017-06-15 18:01:11


On Thu, Jun 15, 2017 at 3:32 PM, Frédéric Bron via Boost
<boost_at_[hidden]> wrote:
> This simple program compiles nicely on Linux+gcc 6.3.0 but fails to
> compile on x86_64-w64-mingw (6.3.0, std=c++14):
>
> #include "nowide/fstream.hpp"
> int main() {
> auto f = nowide::fstream("toto.log");
> return 0;
> }
>
> instead of
> auto f=...,
> nowide::fstream f("toto.log")
> works fine.
>
> The error is:
> toto.cpp:4:38: erreur : use of deleted function «
> nowide::basic_fstream<char>::basic_fstream(const
> nowide::basic_fstream<char>&) »
> auto f = nowide::fstream("toto.log");
> ^

Ok I see,

Nowide misses some of the C++11 interfaces - for example move constructor
but it shouldn't be hard to implement ones.

Also I wasn't aware that auto f = nowide::fstream("toto.log"); Can
actually call move
constructor.

Artyom


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