C++0X constexpr implementation status

Jason Merrill jason@redhat.com
Mon Jan 26 18:17:00 GMT 2009


Ed Smith-Rowland wrote:
> In my efforts to build C++-0X library components I've noticed that 
> constexpr member variables are used in several places.  I was unable to 
> implement these as intended and reverted to const accessors.
> 
> It seems like the intent is sort of a static const function except that 
> it binds to a specific instance.
> 
> I looked around and it looked like some effort had taken place to 
> implement constexpr in the front end.  I was wondering where this effort 
> left off?  Will it be picked up in the gcc-4.5 time frame?

Gabriel dos Reis was working on constexpr.  I don't know its current status.

Jason



More information about the Gcc mailing list