Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] C++14 Constexpr Evaluation

All references to template parameters are done by position. Parameter bindings differ between template specializations, but positions are the same.

-sergey

On Tue, Oct 14, 2014 at 5:12 AM, Silvano Brugnoni <sbrugnon@xxxxxx> wrote:
Hi everyone,

I'm a CS graduate student working on implementing the evaluation of C++14 constexpr functions as part of a term project. I already have some experience with the CDT code base, as I'm also working part-time as an assistant at the Institute for Software in Rapperswil, Switzerland where I have developed a few plug-Ins for CDT.

I noticed that the current implementation of the evaluation maps function paramaters to their values using the class CPPFunctionParameterMap, where the parameter values can be looked up via the parameter position. This was a bit confusing to me. Is there a specific reason why the mapping is done using the position of the parameter, rather than the parameter's binding?

I appreciate any advice.

Regards
Silvano
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top