#include <iostream>
#include <type_traits>


struct A {
  using my_tag = int; // changed to int
};

struct B {};


// same as your enable_if_type
template <typename...>
using void_t = void;


template<class T, class Enable = void>
struct has_my_tag : std::false_type {};

template<class T> // specialization will not match with int
struct has_my_tag<T, typename T::my_tag> : std::true_type
{};


int main() {
	std::cout << has_my_tag<A>::value << std::endl;
	std::cout << has_my_tag<B>::value << std::endl;
	return 0;
}