Skip to content

Commit efc5bd9

Browse files
committed
WIP: use FWD() macro, wait for PR in stdx to finalise
1 parent 9f17802 commit efc5bd9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: include/msg/rle_indexed_handler.hpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
#include <stdx/compiler.hpp>
77

8+
// TODO: remove when stdx contains a FWD() macro
9+
#define FWD(x) std::forward<decltype(x)>(x)
10+
811
namespace msg {
912

1013
template <typename RleStorageT, typename... IndicesT>
@@ -14,13 +17,15 @@ struct rle_indices : IndicesT... {
1417

1518
constexpr auto operator()(auto const &data) const {
1619
// proxy to allow intersection without materializing a full bitset.
17-
return detail::rle_intersect{std::forward<decltype(storage.decode(
18-
this->IndicesT::operator()(data)))>(
19-
storage.decode(this->IndicesT::operator()(data)))...};
20+
return detail::rle_intersect{
21+
FWD(storage.decode(this->IndicesT::operator()(data)))...};
2022
}
2123

2224
// index entries will map into this storage to decode RLE data
2325
RleStorageT storage;
2426
};
2527

2628
} // namespace msg
29+
30+
// TODO: remove when stdx contains a FWD() macro
31+
#undef FWD

0 commit comments

Comments
 (0)