Skip to content

Commit 1fd217a

Browse files
committed
Doc update
1 parent 849606a commit 1fd217a

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

include/jsoncons/json_options.hpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -210,26 +210,12 @@ class basic_json_options_common
210210

211211
string_type nan_to_str() const
212212
{
213-
if (enable_nan_to_str_)
214-
{
215-
return nan_to_str_;
216-
}
217-
else
218-
{
219-
return nan_to_str_; // empty string
220-
}
213+
return nan_to_str_;
221214
}
222215

223216
string_type inf_to_str() const
224217
{
225-
if (enable_inf_to_str_)
226-
{
227-
return inf_to_str_;
228-
}
229-
else
230-
{
231-
return inf_to_str_; // empty string
232-
}
218+
return inf_to_str_;
233219
}
234220

235221
string_type neginf_to_str() const

0 commit comments

Comments
 (0)