File tree Expand file tree Collapse file tree 4 files changed +169
-197
lines changed Expand file tree Collapse file tree 4 files changed +169
-197
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ namespace json
398
398
// / <param name="errorCode">If parsing fails, the error code is greater than 0</param>
399
399
// / <returns>The parsed object. Returns web::json::value::null if failed</returns>
400
400
_ASYNCRTIMP static value parse (const utility::string_t &, std::error_code&);
401
-
401
+
402
402
// / <summary>
403
403
// / Serializes the current JSON value to a C++ string.
404
404
// / </summary>
@@ -678,12 +678,12 @@ namespace json
678
678
class json_error_category_impl : public std ::error_category
679
679
{
680
680
public:
681
- virtual const char * json_error_category_impl::name () const
681
+ virtual const char * json_error_category_impl::name () const override
682
682
{
683
683
return " json" ;
684
684
}
685
685
686
- virtual std::string json_error_category_impl::message (int ev) const
686
+ virtual std::string json_error_category_impl::message (int ev) const override
687
687
{
688
688
switch (ev)
689
689
{
@@ -715,11 +715,7 @@ namespace json
715
715
}
716
716
};
717
717
718
- inline const json_error_category_impl& json_error_category ()
719
- {
720
- static json_error_category_impl instance;
721
- return instance;
722
- }
718
+ _ASYNCRTIMP const json_error_category_impl& json_error_category ();
723
719
}
724
720
725
721
// / <summary>
Original file line number Diff line number Diff line change @@ -456,3 +456,9 @@ web::json::value& web::json::value::operator[](size_t index)
456
456
}
457
457
return m_value->index (index);
458
458
}
459
+
460
+ const web::json::details::json_error_category_impl& web::json::details::json_error_category ()
461
+ {
462
+ static web::json::details::json_error_category_impl instance;
463
+ return instance;
464
+ }
You can’t perform that action at this time.
0 commit comments