• Adam Procter's avatar
    Allow boolean comparisons; update element::Type::operator== to also compare m_cname (#214) · 7f9b6b84
    Adam Procter authored
    This adds support for > < >= <= on bool, which by the type checker's standards should have been allowed anyway.
    
    Also, this bug had presenting in a different way from expected (should have thrown "unhandled element type" from external_function, instead bonked because it incorrectly dispatched on int8_t). This was due to element::Type::operator== comparing only size, signedness, and floatiness, meaning that char and signed char (aka int8_t) look the same. Fixed by adding a test for m_cname equality.
    7f9b6b84
Name
Last commit
Last update
..
autodiff Loading commit data...
descriptor Loading commit data...
ops Loading commit data...
pass Loading commit data...
runtime Loading commit data...
types Loading commit data...
CMakeLists.txt Loading commit data...
common.hpp Loading commit data...
except.hpp Loading commit data...
function.cpp Loading commit data...
function.hpp Loading commit data...
log.cpp Loading commit data...
log.hpp Loading commit data...
ngraph.hpp Loading commit data...
node.cpp Loading commit data...
node.hpp Loading commit data...
shape.cpp Loading commit data...
shape.hpp Loading commit data...
util.cpp Loading commit data...
util.hpp Loading commit data...
uuid.hpp Loading commit data...