File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
regression-tests/test-results Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -522,12 +522,11 @@ template<typename T>
522
522
template <typename T>
523
523
constexpr bool prefer_pass_by_value =
524
524
sizeof (T) <= 2 *sizeof (void *)
525
- && std::is_trivially_copy_constructible_v<T>
526
- && !std::is_class_v<T>
527
- && !std::is_union_v<T>
528
- && !std::is_array_v<T>
529
- && !std::is_function_v<T>
530
- ;
525
+ && std::is_trivially_copy_constructible_v<T>;
526
+
527
+ template <typename T>
528
+ requires std::is_class_v<T> || std::is_union_v<T> || std::is_array_v<T> || std::is_function_v<T>
529
+ constexpr bool prefer_pass_by_value<T> = false ;
531
530
532
531
template <typename T>
533
532
requires (!std::is_void_v<T>)
Original file line number Diff line number Diff line change 1
1
2
- cppfront compiler v0.2.1 Build 8529:1436
2
+ cppfront compiler v0.2.1 Build 8529:1625
3
3
Copyright(c) Herb Sutter All rights reserved
4
4
5
5
SPDX-License-Identifier: CC-BY-NC-ND-4.0
Original file line number Diff line number Diff line change 1
- "8529:1436 "
1
+ "8529:1625 "
You can’t perform that action at this time.
0 commit comments