Fix kName fields in benchmarks/init.cpp

This commit is contained in:
sha512sum 2024-04-27 12:17:21 +00:00
parent 1b7899743c
commit 3ae45aa20c

View file

@ -53,7 +53,7 @@ struct SomeComponent6 {
struct SomeComponent7 { struct SomeComponent7 {
SomeComponent4& first; SomeComponent4& first;
SomeComponent6& second; SomeComponent6& second;
static constexpr utempl::ConstexprString kName = "6"; static constexpr utempl::ConstexprString kName = "7";
constexpr SomeComponent7(auto, auto& context) : constexpr SomeComponent7(auto, auto& context) :
first(context.template FindComponent<"4">()), first(context.template FindComponent<"4">()),
second(context.template FindComponent<"6">()) {}; second(context.template FindComponent<"6">()) {};
@ -63,7 +63,7 @@ struct SomeComponent7 {
struct SomeComponent8 { struct SomeComponent8 {
SomeComponent3& first; SomeComponent3& first;
SomeComponent5& second; SomeComponent5& second;
static constexpr utempl::ConstexprString kName = "6"; static constexpr utempl::ConstexprString kName = "8";
constexpr SomeComponent8(auto, auto& context) : constexpr SomeComponent8(auto, auto& context) :
first(context.template FindComponent<"3">()), first(context.template FindComponent<"3">()),
second(context.template FindComponent<"5">()) {}; second(context.template FindComponent<"5">()) {};