🏗️ adding anonymous namespace

This commit is contained in:
Niels Lohmann 2019-04-04 08:56:36 +02:00
parent 0da99027b7
commit f05614b240
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
16 changed files with 51 additions and 8 deletions

View file

@ -34,12 +34,15 @@ SOFTWARE.
using nlohmann::json;
#undef private
namespace
{
// shortcut to scan a string literal
json::lexer::token_type scan_string(const char* s);
json::lexer::token_type scan_string(const char* s)
{
return json::lexer(nlohmann::detail::input_adapter(s)).scan();
}
}
TEST_CASE("lexer class")
{