blob: 6daffadc6cede36d7ecc483545ea93c2a12be53d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
template<typename> struct MergeSpecializations;
template<typename T> struct MergeSpecializations<T[]> {
typedef int partially_specialized_in_c;
};
template<> struct MergeSpecializations<bool> {
typedef int explicitly_specialized_in_c;
};
template<typename T> struct MergeTemplateDefinitions {
static constexpr int f();
static constexpr int g();
};
template<typename T> constexpr int MergeTemplateDefinitions<T>::g() { return 2; }
|