#include <iostream>
#include <limits>
#include <type_traits>

using namespace std;

template <typename T>
constexpr enable_if_t<is_integral<T>::value, int[]> foo = { 1, 2 };

template <typename T>
constexpr enable_if_t<is_floating_point<T>::value, int[]> foo = { 10, 20, 30 };


int main() {
  cout << foo<int>[0] << endl;
}