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 7 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
// NOTE: Do **NOT** remove this when sunsetting the V1 API!
inline void use(...) {
static_assert(false, _DEPRECATE(_DEPRECATED_MESSAGE_USE));
template <typename Plugin__>
inline void use(Plugin__ first, ...) {
static_assert(sizeof(Plugin__) < 0, _DEPRECATE(_DEPRECATED_MESSAGE_USE));
}
#endif

Loading…
Cancel
Save