Merge pull request #346 from keyboardio/h/use-error-fix

Fix the way we trigger an error on Kaleidoscope.use() with V2 API
pull/317/merge
Jesse Vincent 6 years ago committed by GitHub
commit 38ccd717fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -142,8 +142,9 @@ class Kaleidoscope_ {
} }
#else #else
// NOTE: Do **NOT** remove this when sunsetting the V1 API! // NOTE: Do **NOT** remove this when sunsetting the V1 API!
inline void use(...) { template <typename Plugin__>
static_assert(false, _DEPRECATE(_DEPRECATED_MESSAGE_USE)); inline void use(Plugin__ first, ...) {
static_assert(sizeof(Plugin__) < 0, _DEPRECATE(_DEPRECATED_MESSAGE_USE));
} }
#endif #endif

Loading…
Cancel
Save