Commit 29a2e875 authored by Kenton Varda's avatar Kenton Varda

Try to fix MSVC.

parent 302146b0
...@@ -1276,7 +1276,12 @@ class JsonCodec::JsonValueHandler final: public JsonCodec::Handler<DynamicStruct ...@@ -1276,7 +1276,12 @@ class JsonCodec::JsonValueHandler final: public JsonCodec::Handler<DynamicStruct
public: public:
void encode(const JsonCodec& codec, DynamicStruct::Reader input, void encode(const JsonCodec& codec, DynamicStruct::Reader input,
JsonValue::Builder output) const override { JsonValue::Builder output) const override {
#if _MSC_VER
// TODO(msvc): Hack to work around missing AnyStruct::Builder constructor on MSVC.
rawCopy(input, toDynamic(output));
#else
rawCopy(input, kj::mv(output)); rawCopy(input, kj::mv(output));
#endif
} }
void decode(const JsonCodec& codec, JsonValue::Reader input, void decode(const JsonCodec& codec, JsonValue::Reader input,
......
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