From aa001544e2f0364dbc556b88cd61989ee3de0f55 Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Wed, 15 Apr 2020 23:53:26 -0400 Subject: [PATCH] correcting usage of stream operator --- tests/TokenTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TokenTest.cpp b/tests/TokenTest.cpp index 209f18c..65915a1 100644 --- a/tests/TokenTest.cpp +++ b/tests/TokenTest.cpp @@ -351,7 +351,10 @@ TEST(TokenTest, VerifyFail) { } { jwt::claim object; - std::stringstream{R"({ "test": null })"} >> object; + std::istringstream iss{R"({ "test": null })"}; + iss >> object; + ASSERT_EQ(object.get_type() , jwt::claim::type::object); + auto verify = jwt::verify() .allow_algorithm(jwt::algorithm::none{}) .with_issuer("auth0")