lock3 / meta

123 stars 11 forks source link

documentation: corrected example for parameter injection #268

Closed rbock closed 3 years ago

rbock commented 3 years ago

Hi,

See https://github.com/lock3/meta/wiki/Metaprogramming-Introductory-Tutorial#parameter-injection

The code sample does not work any more, because

Also, it might be good to show off the return_type_ofmeta function :-)

Updated version: https://cppx.godbolt.org/z/Kr6sT9

Best,

Roland

DarkArc commented 3 years ago

:grimacing: whoops, fixed, thanks!

Also, it might be good to show off the return_type_of meta function :-)

Noted, I'll try to keep that in mind for a future example :)