bitset - fix compilation issue for centos7

This commit is contained in:
Francisco 2021-03-09 11:29:40 +00:00 committed by Francisco Paisana
parent 0f9d73012f
commit 4c1067bcf6
1 changed files with 3 additions and 1 deletions

View File

@ -352,9 +352,10 @@ inline bounded_bitset<N, reversed> fliplr(const bounded_bitset<N, reversed>& oth
} // namespace srslte
namespace fmt {
/// Custom formatter for bounded_bitset<N, reversed>
template <size_t N, bool reversed>
struct fmt::formatter<srslte::bounded_bitset<N, reversed> > {
struct formatter<srslte::bounded_bitset<N, reversed> > {
enum { hexadecimal, binary } mode = binary;
template <typename ParseContext>
@ -381,5 +382,6 @@ struct fmt::formatter<srslte::bounded_bitset<N, reversed> > {
return s.template to_string(ctx.out());
}
};
} // namespace fmt
#endif // SRSLTE_DYN_BITSET_H