File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ namespace clienttelemetry {
130
130
return true ;
131
131
}
132
132
133
+ #ifdef _MSC_VER
134
+ #pragma warning(push)
135
+ #pragma warning(disable : 4866)
136
+ // In C++17 left-to-right evaluation order for operands of operator[] is not guaranteed when the argument's copy constructor is run.
137
+ // Evalutation order isn't not relied upon here, disabling warning.
138
+ #endif // _MSC_VER
133
139
void to_json (json& j, const Data& d)
134
140
{
135
141
for (const auto &kv : d.properties )
@@ -230,6 +236,9 @@ namespace clienttelemetry {
230
236
}
231
237
}
232
238
}
239
+ #ifdef _MSC_VER
240
+ #pragma warning( pop )
241
+ #endif // _MSC_VER
233
242
234
243
void to_json (json& j, const Record& r)
235
244
{
Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ namespace MAT_NS_BEGIN
40
40
}
41
41
}
42
42
43
+ #ifdef _MSC_VER
44
+ #pragma warning( push )
45
+ #pragma warning( disable : 4866 )
46
+ // In C++17 left-to-right evaluation order for operands of operator[] is not guaranteed when the argument's copy constructor is run.
47
+ // Evalutation order isn't not relied upon here, disabling warning.
48
+ #endif // _MSC_VER
43
49
void addData (json& object, std::vector<::CsProtocol::Data>& data)
44
50
{
45
51
std::vector<::CsProtocol::Data>::const_iterator it;
@@ -126,6 +132,9 @@ namespace MAT_NS_BEGIN
126
132
}
127
133
}
128
134
}
135
+ #ifdef _MSC_VER
136
+ #pragma warning( pop )
137
+ #endif // _MSC_VER
129
138
130
139
std::string JsonFormatter::getJsonFormattedEvent (IncomingEventContextPtr const & event)
131
140
{
You can’t perform that action at this time.
0 commit comments