File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,12 +66,7 @@ inline std::shared_ptr<const Type> to_shared(const Type& value) NOEXCEPT
6666template <typename Type, typename ...Args>
6767inline std::shared_ptr<const Type> to_shared (Args&&... values) NOEXCEPT
6868{
69- // Type{} required due to CLang bug.
70- #if defined HAVE_CLANG
71- return std::make_shared<const Type>(Type{ std::forward<Args>(values)... });
72- #else
7369 return std::make_shared<const Type>(std::forward<Args>(values)...);
74- #endif
7570}
7671
7772// / Obtain non constant pointer from shared_ptr to const.
@@ -127,12 +122,7 @@ inline std::unique_ptr<const Type> to_unique(const Type& value) NOEXCEPT
127122template <typename Type, typename ...Args>
128123inline std::unique_ptr<const Type> to_unique (Args&&... values) NOEXCEPT
129124{
130- // Type{} required due to CLang bug.
131- #if defined HAVE_CLANG
132- return std::make_unique<const Type>(Type{ std::forward<Args>(values)... });
133- #else
134125 return std::make_unique<const Type>(std::forward<Args>(values)...);
135- #endif
136126}
137127
138128BC_POP_WARNING ()
Original file line number Diff line number Diff line change 194194 #define HAVE_STRING_CONSTEXPR
195195 #define HAVE_VECTOR_CONSTEXPR
196196 #elif defined(HAVE_CLANG)
197- // Apple clang version 15.0.0 (clang-1500.0.40.1)
197+ // Apple clang version 15
198198 #if defined(HAVE_APPLE)
199199 #define HAVE_RANGES
200200 #define HAVE_CONSTEVAL
201201 #define HAVE_STRING_CONSTEXPR
202202 #define HAVE_VECTOR_CONSTEXPR
203- // Ubuntu clang version 15.0.7
203+ // Ubuntu clang version 16
204204 #else
205- // // #define HAVE_RANGES (v16)
205+ #define HAVE_RANGES
206206 // //#define HAVE_CONSTEVAL (v17)
207207 #define HAVE_STRING_CONSTEXPR
208208 #define HAVE_VECTOR_CONSTEXPR
209209 #endif
210- // gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
210+ // gcc version 12
211211 #elif defined(HAVE_GCC)
212212 #define HAVE_RANGES
213213 #define HAVE_CONSTEVAL
214- // // #define HAVE_STRING_CONSTEXPR (v12)
215- // // #define HAVE_VECTOR_CONSTEXPR (v12)
214+ #define HAVE_STRING_CONSTEXPR
215+ #define HAVE_VECTOR_CONSTEXPR
216216 #endif
217217#endif
218218
219219// / C++20: parenthesized initialization of aggregates requires clang16/xcode16.
220- // / We don't have macro treatment for that, just ad-hoc conditions.
220+ // / We don't have macro treatment for that, just ad-hoc HAVE_CLANG conditions.
221221
222222// / None on xcode.
223223// / Requires link with -ltbb on gcc (v9).
You can’t perform that action at this time.
0 commit comments