7 Jan
2008
7 Jan
'08
12:25 p.m.
Tobias Schwinger wrote:
Joel de Guzman wrote:
Anyway, you have good points. Yes, an explicitly specified return type would be ok too. In the standpoint of optimization, yes, a variant return is suboptimal at both compile time and at runtime.
Exactly. The mechanism you propose could still be useful and provided by the library as a utilty metafunction (which is what I was trying to say with "should be an extra metafunction" :-)).
Agreed 100% Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net