You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MOD-11651] Fix wrong template type deduction in GenerateAndAddVector (#785)
Prevent template deduction errors in GenerateAndAddVector by making data_t parameter non-deducible
Used std::type_identity<data_t>::type for the value parameter to force explicit template specification (e.g., GenerateAndAddVector<double>()) instead of allowing compiler to incorrectly deduce int from literal values, which caused buffer overflows when index expected different data types.
0 commit comments