X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=folly%2Fdynamic.cpp;h=8ef7d08ee6e4159efc7f484dc8262c86f5d0cf09;hb=7c9e64a0cf44be563abdad056e45e8268e99ee0a;hp=c2fac276628b2d2842708c773d3e11e6d446a179;hpb=fa172175980b13569ba42008202a857af6e959dd;p=folly.git diff --git a/folly/dynamic.cpp b/folly/dynamic.cpp index c2fac276..8ef7d08e 100644 --- a/folly/dynamic.cpp +++ b/folly/dynamic.cpp @@ -29,7 +29,7 @@ namespace folly { constexpr dynamic::Type dynamic::TypeInfo::type; \ // -FOLLY_DYNAMIC_DEF_TYPEINFO(void*) +FOLLY_DYNAMIC_DEF_TYPEINFO(std::nullptr_t) FOLLY_DYNAMIC_DEF_TYPEINFO(bool) FOLLY_DYNAMIC_DEF_TYPEINFO(std::string) FOLLY_DYNAMIC_DEF_TYPEINFO(dynamic::Array) @@ -65,7 +65,7 @@ TypeError::~TypeError() = default; do { \ switch ((type)) { \ case NULLT: \ - apply(void*); \ + apply(std::nullptr_t); \ break; \ case ARRAY: \ apply(Array); \ @@ -254,8 +254,7 @@ std::size_t dynamic::size() const { throw TypeError("array/object", type()); } -dynamic::const_iterator -dynamic::erase(const_iterator first, const_iterator last) { +dynamic::iterator dynamic::erase(const_iterator first, const_iterator last) { auto& arr = get(); return get().erase( arr.begin() + (first - arr.begin()),