09/06/14 18:02:25
>>656
>>655 はこういうことだと思う
template<class T>
void f(T, ...)
{
std::cout << "T";
}
template<class T>
void f(T*, boost::type<T>)
{
std::cout << "T*";
}
int main()
{
double d = 0;
int i = 0;
f(d);
f(&i, boost::type<int>());
f(&d, boost::type<double>());
}