Skip to content

Instantly share code, notes, and snippets.

@manuelm
Created January 6, 2016 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelm/08d27f271c8102eaf7ac to your computer and use it in GitHub Desktop.
Save manuelm/08d27f271c8102eaf7ac to your computer and use it in GitHub Desktop.
diff --git a/src/bindings/cpp/include/keyset.hpp b/src/bindings/cpp/include/keyset.hpp
index 92cd2d2..7f06329 100644
--- a/src/bindings/cpp/include/keyset.hpp
+++ b/src/bindings/cpp/include/keyset.hpp
@@ -55,6 +55,10 @@ public:
inline KeySet(const KeySet &other);
inline explicit KeySet(size_t alloc, ...);
+ __attribute__((unused))
+ __attribute__((noinline))
+ __attribute__((error("wrong constructor")))
+ explicit KeySet(Key, ...) { ks = nullptr; }
inline explicit KeySet(Va va, size_t alloc, va_list ap);
inline ~KeySet ();
diff --git a/src/bindings/swig/common.i b/src/bindings/swig/common.i
index 43a6a9b..45a7b15 100644
--- a/src/bindings/swig/common.i
+++ b/src/bindings/swig/common.i
@@ -131,6 +131,8 @@
%ignore kdb::Va;
%ignore kdb::KeySet::KeySet(Va va, size_t alloc, va_list ap);
%ignore kdb::KeySet::KeySet(size_t alloc, ...);
+#define __attribute__(x)
+%ignore kdb::KeySet::KeySet(Key, ...);
%ignore kdb::KeySet::operator=;
// iterators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment