J
Johannes Schaub (litb)
I have this code:
namespace {
template <class T>
struct Template { /* ... */ };
}
typedef Template<int> Template;
Can we put code after it to create an object of type `Template<float>`?
Reopening the unnamed namespace is not allowed. All code should be
afterwards!
I think there are a couple of solutions. What are the most crazy ones?
namespace {
template <class T>
struct Template { /* ... */ };
}
typedef Template<int> Template;
Can we put code after it to create an object of type `Template<float>`?
Reopening the unnamed namespace is not allowed. All code should be
afterwards!
I think there are a couple of solutions. What are the most crazy ones?