MCPcopy Create free account
hub / github.com/covscript/covscript / add

Function add

include/covscript/impl/type_ext.hpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 namespace operators {
33 template <typename T>
34 static inline var add(const T &lhs, const var &rhs)
35 {
36 throw lang_error("Type " + cs_impl::cxx_demangle(cs_impl::get_name_of_type<T>()) + " does not support + operator.");
37 }
38
39 template <typename T>
40 static inline var sub(const T &lhs, const var &rhs)

Callers 1

addMethod · 0.85

Calls 2

lang_errorClass · 0.85
cxx_demangleFunction · 0.85

Tested by

no test coverage detected