Skip to content

Commit 0131cf5

Browse files
committed
Update And block to use std::integral and added empty line at the end
1 parent 597f217 commit 0131cf5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

blocks/basic/include/gnuradio-4.0/basic/And.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
#include <gnuradio-4.0/Block.hpp>
55
#include <gnuradio-4.0/BlockRegistry.hpp>
6+
#include <concepts>
67

78
namespace gr::basic {
89

910
GR_REGISTER_BLOCK(gr::basic::And, [uint8_t, int16_t, int32_t])
1011

11-
template<typename T>
12-
requires std::is_arithmetic_v<T>
12+
template<std::integral T>
1313
struct And : Block<And<T>> {
1414
using Description = Doc<"@brief Performs a bitwise AND operation on two inputs, producing one output stream.">;
1515

@@ -26,4 +26,4 @@ struct And : Block<And<T>> {
2626

2727
} // namespace gr::blocks
2828

29-
#endif // AND_HPP
29+
#endif // AND_HPP

blocks/basic/test/qa_And.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ const suite AndTests = [] {
5858
};
5959
};
6060

61-
int main() { return boost::ut::cfg<boost::ut::override>.run(); }
61+
int main() { return boost::ut::cfg<boost::ut::override>.run(); }

0 commit comments

Comments
 (0)