removed an unnecessary cast (fixed #162)
This commit is contained in:
1 parent
aca6a3b373
commit
3905406f9c
3 files changed
+3
-5
No files matched your search
+1
-2
@@ -7866,8 +7866,7 @@ no parse error occurred.
|
||||
*/
|
||||
inline nlohmann::json operator "" _json(const char* s, std::size_t)
|
||||
{
|
||||
return nlohmann::json::parse(reinterpret_cast<nlohmann::json::string_t::value_type*>
|
||||
(const_cast<char*>(s)));
|
||||
return nlohmann::json::parse(reinterpret_cast<const nlohmann::json::string_t::value_type*>(s));
|
||||
}
|
||||
|
||||
#endif
|
||||
+1
-2
@@ -7145,8 +7145,7 @@ no parse error occurred.
|
||||
*/
|
||||
inline nlohmann::json operator "" _json(const char* s, std::size_t)
|
||||
{
|
||||
return nlohmann::json::parse(reinterpret_cast<nlohmann::json::string_t::value_type*>
|
||||
(const_cast<char*>(s)));
|
||||
return nlohmann::json::parse(reinterpret_cast<const nlohmann::json::string_t::value_type*>(s));
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user