Skip to content

Commit 5811804

Browse files
Fabi12345678910PeterTh
authored andcommitted
fix default creation of empty unique ptr
1 parent e3843d8 commit 5811804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/simsycl/detail/group_operation_impl.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ template<typename Func>
200200
concept GroupOpInitFunction = std::is_invocable_r_v<std::unique_ptr<group_per_operation_data>, Func>;
201201

202202
inline std::unique_ptr<group_per_operation_data> default_group_op_init_function() {
203-
return std::unique_ptr<group_per_operation_data>();
203+
return std::make_unique<group_per_operation_data>();
204204
}
205205

206206
template<typename T>

0 commit comments

Comments
 (0)