summaryrefslogtreecommitdiffhomepage
path: root/include/stc/template.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-11-15 18:50:49 +0100
committerTyge Løvset <[email protected]>2022-11-15 18:50:49 +0100
commit178f4f9048cc4b4db30d5ee694c3eb3158c34749 (patch)
tree9d3a67ce3f5b6d8029cc0b7484e89c4874298da4 /include/stc/template.h
parent688aa900792cf6629c2aa8c814dd590306ae05e0 (diff)
downloadSTC-modified-178f4f9048cc4b4db30d5ee694c3eb3158c34749.tar.gz
STC-modified-178f4f9048cc4b4db30d5ee694c3eb3158c34749.zip
More internal cleanup and fixes for cbox and carc.
Diffstat (limited to 'include/stc/template.h')
-rw-r--r--include/stc/template.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/stc/template.h b/include/stc/template.h
index 95a0871f..cd47a989 100644
--- a/include/stc/template.h
+++ b/include/stc/template.h
@@ -92,6 +92,9 @@
#if c_option(c_no_cmp)
#define i_no_cmp
#endif
+#if c_option(c_no_eq)
+ #define i_no_eq
+#endif
#if c_option(c_no_hash)
#define i_no_hash
#endif
@@ -119,7 +122,7 @@
#define i_keyclass i_keyboxed
#define i_rawclass c_paste(i_keyboxed, _raw)
#define i_keyfrom c_paste(i_keyboxed, _from)
- #if !defined i_no_hash
+ #ifndef i_no_eq
#define i_eq c_paste(i_keyboxed, _raw_eq)
#endif
#endif
@@ -316,6 +319,7 @@
#undef i_extern
#undef i_no_cmp
+#undef i_no_eq
#undef i_no_hash
#undef i_no_clone
#undef i_no_emplace