Created
January 6, 2016 13:53
-
-
Save manuelm/08d27f271c8102eaf7ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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