Closed rbock closed 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
set_name
set_new_name
fragment
fragment struct
struct
Also, it might be good to show off the return_type_ofmeta function :-)
return_type_of
Updated version: https://cppx.godbolt.org/z/Kr6sT9
Best,
Roland
: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 :)
Hi,
See https://github.com/lock3/meta/wiki/Metaprogramming-Introductory-Tutorial#parameter-injection
The code sample does not work any more, because
set_name
is nowset_new_name
fragment
should befragment struct
(it does not compile withoutstruct
)Also, it might be good to show off the
return_type_of
meta function :-)Updated version: https://cppx.godbolt.org/z/Kr6sT9
Best,
Roland