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 Eric Niebler, 11 years ago

Status: newassigned

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.

comment:2 by Mathias Gaunard, 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 Eric Niebler, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [74475]) merge [74474] from trunk, fixes #5648

Note: See TracTickets for help on using tickets.