Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct pin_in_out { static void set( bool v ){} };
- struct pin_in{ };
- template< typename T >
- concept bool test_case = requires( bool v ) {
- { T::set( v ) } -> void;
- };
- int main(){
- std::cout << test_case< pin_in_out > << "n";
- std::cout << test_case< pin_in > << "n";
- }
- 1
- 0
Add Comment
Please, Sign In to add comment