Opened 12 years ago

#4613 new Bugs

Default value for optional Boolean type not being created.

Reported by: Ryan McConnehey <mccorywork@…> Owned by: Daniel Wallin
Milestone: To Be Determined Component: parameter
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

If a default Boolean value isn't used in extracting the value from the ArgumentPack a compile error occurs. That means that this code compiles "m_name(args[_name | false])" but "m_name(args[_name])" doesn't. A code example can be found in this boost thread.

http://old.nabble.com/-parameter--Weird-behavior-with-bools-td29539068.html

Change History (0)

Note: See TracTickets for help on using tickets.