Boost logo

Boost Users :

Subject: Re: [Boost-users] Program Options and Filesystem ifstream
From: Sergiu Dotenco (sergiu.dotenco_at_[hidden])
Date: 2015-08-19 06:12:59

On 8/19/2015 10:59 AM, Scott Morgan wrote:
> On 18/08/15 21:20, Sergiu Dotenco wrote:
>> Your are trying to pass a temporary to a reference parameter, which is
>> wrong.
>> Try instead:
>> fs::ifstream in(cfg_path);
>> po::store(po::parse_config_file(in, cfg_desc, true), options);
> Ah, that works, thanks!
> So, was the MSVC compiler accepting the temporary incorrect behaviour?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at