File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on : [ push, pull_request]
3
+ on : push
4
4
5
5
env :
6
6
EM_VERSION : 2.0.16
Original file line number Diff line number Diff line change @@ -198,9 +198,14 @@ class basic_control_block final {
198
198
using control_block_storage_type =
199
199
typename observer_policy_queries<Policy>::control_block_storage_type;
200
200
201
- static constexpr control_block_storage_type highest_bit_mask =
202
- control_block_storage_type{1 }
203
- << control_block_storage_type{sizeof (control_block_storage_type) * 8 - 1 };
201
+ static constexpr control_block_storage_type get_highest_bit_mask () {
202
+ // NB: This is put in a function to avoid a spurious MSVC warning.
203
+ return static_cast <control_block_storage_type>(1 )
204
+ << (static_cast <control_block_storage_type>(
205
+ sizeof (control_block_storage_type) * 8 - 1 ));
206
+ }
207
+
208
+ static constexpr control_block_storage_type highest_bit_mask = get_highest_bit_mask();
204
209
205
210
control_block_storage_type storage = 1 ;
206
211
You can’t perform that action at this time.
0 commit comments