19 Aug
2015
19 Aug
'15
10:12 a.m.
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?
Yes.