Commit f6d085a2 authored by Harris Hancock's avatar Harris Hancock Committed by Kenton Varda

Fix typo in ParserRef static_asserts

parent cfd26881
...@@ -133,12 +133,12 @@ public: ...@@ -133,12 +133,12 @@ public:
template <typename Other> template <typename Other>
constexpr ParserRef(Other&& other) constexpr ParserRef(Other&& other)
: parser(&other), wrapper(&WrapperImplInstance<Decay<Other>>::instance) { : parser(&other), wrapper(&WrapperImplInstance<Decay<Other>>::instance) {
static_assert(kj::isReference<Other>(), "ParseRef should not be assigned to a temporary."); static_assert(kj::isReference<Other>(), "ParserRef should not be assigned to a temporary.");
} }
template <typename Other> template <typename Other>
inline ParserRef& operator=(Other&& other) { inline ParserRef& operator=(Other&& other) {
static_assert(kj::isReference<Other>(), "ParseRef should not be assigned to a temporary."); static_assert(kj::isReference<Other>(), "ParserRef should not be assigned to a temporary.");
parser = &other; parser = &other;
wrapper = &WrapperImplInstance<Decay<Other>>::instance; wrapper = &WrapperImplInstance<Decay<Other>>::instance;
return *this; return *this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment