Skip to content

Commit 081a88f

Browse files
committed
Remove '=delete' from template methods for Xcode 8
For Apple clang-800.0.42.1, which was released with Xcode 8 in September 2016, the '=delete' on the 'is' and 'as' methods causes the following errors for value.h: inline declaration of 'as<bool>' follows non-inline definition inline declaration of 'is<bool>' follows non-inline definition etcetera for the other specializations of 'is' and 'as'.
1 parent 6bc55ec commit 081a88f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/json/value.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ class JSON_API Value {
390390
bool isObject() const;
391391

392392
/// The `as<T>` and `is<T>` member function templates and specializations.
393-
template <typename T> T as() const = delete;
394-
template <typename T> bool is() const = delete;
393+
template <typename T> T as() const;
394+
template <typename T> bool is() const;
395395

396396
bool isConvertibleTo(ValueType other) const;
397397

0 commit comments

Comments
 (0)