From 9744ec71e8c19d85b5cde16ee335cca1ceece78c Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Mon, 20 May 2024 22:43:26 +0200 Subject: [PATCH] Fix default initialization of container to use (), not {}, allowing C++98 --- include/nonstd/ring.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nonstd/ring.hpp b/include/nonstd/ring.hpp index 7e87f5b..df034c0 100644 --- a/include/nonstd/ring.hpp +++ b/include/nonstd/ring.hpp @@ -118,7 +118,7 @@ class ring || is_std_array::value )) explicit ring() - : cont{} + : cont() , rs( std11::begin(cont), std11::end(cont) ) {}