https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104013
--- Comment #6 from Alexander Poeppel <trekie10b at gmx dot de> --- It works as expected when wrapping the int in double braces: std::vector<std::any> vec_test_any = std::vector<std::any>({{5}});
trekie10b at gmx dot de via Gcc-bugs Thu, 13 Jan 2022 08:48:00 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104013
--- Comment #6 from Alexander Poeppel <trekie10b at gmx dot de> --- It works as expected when wrapping the int in double braces: std::vector<std::any> vec_test_any = std::vector<std::any>({{5}});