Opened 11 years ago
Closed 11 years ago
#5648 closed Bugs (fixed)
Proto decltype limited to one per scope
Reported by: | Mathias Gaunard | Owned by: | Eric Niebler |
---|---|---|---|
Milestone: | To Be Determined | Component: | proto |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | decltype proto macro | Cc: |
Description
The macro BOOST_PROTO_DECLTYPE_ only works once per scope because the variable "sz" does not embed the desired type name.
Change History (3)
comment:1 by , 11 years ago
Status: | new → assigned |
---|
comment:2 by , 11 years ago
While an implementation detail, I find that it is quite practical to have decltype emulation through Boost.Typeof (which unfortunately is not able to leverage decltype itself) when decltype is not available on the target compiler.
Maybe it could be worth moving that out of Proto.
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Note that this is an internal macro and shouldn't be used outside of Proto's implementation. But fixing this is simple enough, so I'll do it.