Added a default implementation in the Visitor class

This commit is contained in:
Benoit Blanchon
2021-02-21 13:37:07 +01:00
parent 1730304f46
commit 22904a48a6
4 changed files with 58 additions and 75 deletions

View File

@@ -8,11 +8,6 @@
namespace ARDUINOJSON_NAMESPACE {
template <typename TResult>
struct Visitor {
typedef TResult result_type;
};
struct Visitable {
// template<Visitor>
// void accept(Visitor&) const;
@@ -22,5 +17,5 @@ template <typename T>
struct IsVisitable : is_base_of<Visitable, T> {};
template <typename T>
struct IsVisitable<T&> : IsVisitable<T> {};
struct IsVisitable<T &> : IsVisitable<T> {};
} // namespace ARDUINOJSON_NAMESPACE