You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is helpful, because targ can also be a type. Also it mimics the sematic closer.
On the other hand it leads to many many duplicated functions and is bad for general obj file size.
Also it is annoying to debug (you cannot set breakpoints in macros).
The CppTranslator should instead generate the templates as functions and pass the template arguments via additional parameter.
The edge case of template<typename T> must be handled somehow.
The text was updated successfully, but these errors were encountered:
Currently C++ template functions are translated to macros:
becomes
This is helpful, because
targ
can also be a type. Also it mimics the sematic closer.On the other hand it leads to many many duplicated functions and is bad for general obj file size.
Also it is annoying to debug (you cannot set breakpoints in macros).
The
CppTranslator
should instead generate the templates as functions and pass the template arguments via additional parameter.The edge case of
template<typename T>
must be handled somehow.The text was updated successfully, but these errors were encountered: