Is there any difference between these two code snippets:
#1:
struct Foo(T : Object) {
#2:
struct Foo(T) if (is(T == class)) {
?
I ask because I prefer option #1, but I see most often in Phobos
variant #2.
Is there any difference between these two code snippets:
#1:
struct Foo(T : Object) {
#2:
struct Foo(T) if (is(T == class)) {
?
I ask because I prefer option #1, but I see most often in Phobos
variant #2.