Skip to content

JWT token unitest fail with POCO_NO_SOO on vs 2019 #3908

@longyn

Description

@longyn

Compiler: Visual Studio 2019 community
Poco: 1.12.4

  1. Poco: 1.12.4
    with POCO_NO_SOO, vs 2019 build failed.
Poco/Dynamic/VarHolder.h(321,21): error C2248: 'Poco::Placeholder<Po 
co::Dynamic::VarHolder,64>::pHolder': cannot access private member declared in class 'Poco::Placeholder<Poco::Dynamic::VarHolder,64>' (compiling source file src\Foundation\src\VarIterator.cpp
  1. with POCO_NO_SOO, build passed

JWT unittest failed

TEST_CASE("testParseNoSign", "TokenTest") {
  std::string jwt("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1MTYyMzkwMjIsIm5hbWUiOiJKb2huIERvZSIsInN1YiI6IjEyMzQ1Njc4OTAifQ.");

  Poco::JWT::Token token(jwt);
}

Fail to parse JWT string

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions