Skip to content

Commit 2b41706

Browse files
committed
fix: Make constructor explicit in OfflineStaticRangeQuery
1 parent dad9b0b commit 2b41706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weilycoder/ds/offline_static_range_query.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ template <typename Monoid, typename ptr_t = size_t> class OfflineStaticRangeQuer
9696
* @brief Constructor
9797
* @param n The size of the data
9898
*/
99-
OfflineStaticRangeQuery(ptr_t n) : query_count(0), data_size(n), queries(n + 1) {}
99+
explicit OfflineStaticRangeQuery(ptr_t n)
100+
: query_count(0), data_size(n), queries(n + 1) {}
100101

101102
/**
102103
* @brief Add a query for the range [l, r)

0 commit comments

Comments
 (0)