Boost logo

Boost Users :

Subject: Re: [Boost-users] [program options] option_groups.cpp example doesn't compile
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2015-02-15 13:43:16


On 02/15/2015 09:03 PM, U.Mutlu wrote:
> I've boost 1.55 from the debian repository.
> I'm trying to compile the below example of the 1.55 version
> (it's same as that of 1.57), but I get the following compile errors.
> Should I use some 'magic' compiler options, or what else is the reason for this grandious failure?
>
>
> $ g++ -Wall -std=gnu++11 option_groups.cpp -lboost_program_options
> option_groups.cpp: In function ‘int main(int, char**)’:
> option_groups.cpp:44:46: error: ‘class boost::program_options::typed_value<std::basic_string<char>, char>’ has no member named ‘implicit’
> ("help-module", value<string>()->implicit(),
> ^
> option_groups.cpp:96:11: error: reference to ‘exception’ is ambiguous
> catch(exception& e) {

Fixed here:

        https://github.com/boostorg/program_options/commit/0f9793e369d0068fb65f812907c166c71fa5f2e4

-- 
Vladimir Prus
CodeSourcery / Mentor Embedded
http://vladimirprus.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net