summaryrefslogtreecommitdiffhomepage
path: root/include/stc/priv
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-24 11:26:53 +0100
committerTyge Løvset <[email protected]>2023-02-24 11:26:53 +0100
commit84e75e1b5039c3e04d9683ec7d8302f1a824b5cb (patch)
treea3229848ed987974e00638fb844a6ff7aa3099c6 /include/stc/priv
parent35e872ec6c0c23b0843e81ff886fc7f5742670b1 (diff)
downloadSTC-modified-84e75e1b5039c3e04d9683ec7d8302f1a824b5cb.tar.gz
STC-modified-84e75e1b5039c3e04d9683ec7d8302f1a824b5cb.zip
Allow to have both i_no_cmp and i_eq defined.
Diffstat (limited to 'include/stc/priv')
-rw-r--r--include/stc/priv/template.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stc/priv/template.h b/include/stc/priv/template.h
index 3fddb998..e352f488 100644
--- a/include/stc/priv/template.h
+++ b/include/stc/priv/template.h
@@ -105,6 +105,9 @@
#if c_option(c_no_emplace)
#define i_no_emplace
#endif
+#ifdef i_eq
+ #define _i_has_eq
+#endif
#if defined i_key_str
#define i_keyclass cstr
@@ -342,5 +345,6 @@
#undef _i_prefix
#undef _i_expandby
#undef _i_has_from
+#undef _i_has_eq
#undef _i_template
#endif