Temporary fix for gcc 13.1 66/312066/3 accepted/tizen/7.0/unified/20240605.045138 accepted/tizen/8.0/unified/20240604.163341 accepted/tizen/unified/20240604.160844 accepted/tizen/unified/x/20240605.012720
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 3 Jun 2024 13:00:00 +0000 (15:00 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 3 Jun 2024 13:03:52 +0000 (15:03 +0200)
For some reason the template deduction fails if the constant is a static
struct member.

Change-Id: Iabd9b2718699cd867889153ea747a8c711cc1966

tests/request_handler_tests.cpp

index 16c0a844dd41577cc678487d6cb88f26dfc69b18..9a6c47ca88085c4c262e7ef60d06e5ec9f0f1d6e 100644 (file)
@@ -868,10 +868,10 @@ TEST(RequestHandler, linked_data_callback_throws_int)
 
 namespace {
 
+constexpr char EXAMPLE_CLIENT_JSON[] = "{\"some_json\": 42}";
+
 template <class WauthnCallbacks>
 struct ResponseCallbackArgumentsTest {
-    static constexpr const char EXAMPLE_CLIENT_JSON[] = "{\"some_json\": 42}";
-
     std::string called;
     bool addLinkedData = false;
     bool nonEmptyUserId = false;
@@ -962,7 +962,7 @@ TEST(RequestHandler, response_callback_pubkey_cred_is_valid)
                     test.addLinkedData = addLinkedData;
                     test.nonEmptyUserId = nonEmptyUserId;
                     // Transaction params
-                    clientDataJson = ToWauthnConstBuff(test.EXAMPLE_CLIENT_JSON);
+                    clientDataJson = ToWauthnConstBuff(EXAMPLE_CLIENT_JSON);
                     test.clientData.client_data_json = &clientDataJson;
                     auto transactionResultProcessor = [&](auto &result) {
                         result.ctapResult.response.m_authDataRaw = BUFFER("auth data");