|
|
|
|
|
by account42
1790 days ago
|
|
> You can't parametrize over namespaces (at least not directly) which is an annoying and arbitrary restriction. It's not a restriction, namespaces are neither types nor values so they would need specific support. Given that you can (ab)use classes with static members as namespaces which are also a type it's simply that nobody cared enough to add support for templating over real namespaces. |
|
Stateless structures are a workaround (so is adl driven by a template parameter), still direct support would be nice.