cotila icon indicating copy to clipboard operation
cotila copied to clipboard

Remove #defines from assertion logic?

Open drubinstein opened this issue 7 years ago • 1 comments

The assertion logic currently uses #defines heavily. Alternatively, we could've made template structs and stick the static_asserts in the structs. You can then use these as default template arguments (similar to enable_if) or as using declarations inside functions or classes.

Evaluate, discuss and implement or invalidate.

drubinstein avatar Apr 08 '18 17:04 drubinstein

For now, I've at least renamed them from ASSERT_(condition) to COTILA_DETAIL_ASSERT_(condition) to avoid any macro name reuse.

calebzulawski avatar Apr 08 '18 17:04 calebzulawski