Opened 14 years ago
Last modified 10 years ago
#2249 new Bugs
MPL::switch_ not working and not documented
Reported by: | 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).
Here's a link to a sample usage. http://codepad.org/Vho6k97u
Change History (3)
comment:1 by , 14 years ago
Component: | None → mpl |
---|---|
Owner: | set to |
comment:2 by , 10 years ago
comment:3 by , 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.
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.