Opened 14 years ago

Last modified 10 years ago

#2249 new Bugs

MPL::switch_ not working and not documented

Reported by: Joel Falcou <joel.falcou@…> Owned by: Aleksey Gurtovoy
Milestone: Boost 1.37.0 Component: mpl
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

Seems the current swich_ implementations uses lambda<> where it shouldn't. Moreover, there is no documentation for switch_.

Here's a link to a working code with added default_ and case_ meta-functions (for purely cosmetic feature, remove if uneeded).

http://codepad.org/OOZ7riiy

Here's a link to a sample usage. http://codepad.org/Vho6k97u

Change History (3)

comment:1 by Marshall Clow, 14 years ago

Component: Nonempl
Owner: set to Aleksey Gurtovoy

comment:2 by rpavlik@…, 10 years ago

This should either be fixed (the "working" version didn't work for me, sadly) and documented, or removed. As it stands, it is a disappointing glimmer of hope.

comment:3 by Joel Falcou, 10 years ago

What's the actual problem with the "working" code ? This may need to be updated.

Note: See TracTickets for help on using tickets.