July 04, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
...saying that C++ doesn't do implicit conversions all over the place (or that D... | |||
July 04, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
"at the same time implicit conversions and type deduction" Quoted comment from TDPL is related... | |||
July 03, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
...attempt combinatorially at the same time implicit conversions and type deduction is a dicey proposition... | |||
July 02, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
I had started to think about "alias this" as C++'s implicit conversion operator. And... | |||
July 02, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
Slightly changed original code
struct Wrap(T)
{
T t;
}
struct S
{
int id;
Wrap!S... | |||
July 02, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
Okay. I had thought of "alias this" as *merely* implicit conversion. But it really makes... | |||
July 02, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
...alias this' is also for automatic type conversions. TommiT's had implemented 'operator Wrap<Teddy... | |||
July 02, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
C++ doesn't have alias this. The behavior that it should be simulating is inheritance... | |||
July 02, 2013 General » Re: Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
That should be:
Teddy ted {123}; | |||
July 02, 2013 General » Function templates do implicit conversions for their arguments | |||
|---|---|---|---|
| |||
...attempt combinatorially at the same time implicit conversions and type deduction is a dicey proposition... | |||
Copyright © 1999-2021 by the D Language Foundation