May 27, 2023 Learn » Re: Concepts like c++20 with specialized overload resolution. | |||
|---|---|---|---|
| |||
Yes I know there is template constraint, but not with specialized overloading right? so you... | |||
May 27, 2023 Learn » Re: Concepts like c++20 with specialized overload resolution. | |||
|---|---|---|---|
| |||
D solution is called [template constraints](https://dlang.org/spec/template.html#template_constraints). | |||
May 27, 2023 Learn » Concepts like c++20 with specialized overload resolution. | |||
|---|---|---|---|
| |||
```
template <typename T>
concept HasMagma = requires(T l) { l.magma(); };
struct LavaMan {
void magma() { std... | |||
May 26, 2023 Learn » Re: Complicated @property access only works when I write an extra parenthesis "()" | |||
|---|---|---|---|
| |||
...workaround that I can implement inside my template things, so the business logic could be... | |||
May 26, 2023 Learn » Complicated @property access only works when I write an extra parenthesis "()" | |||
|---|---|---|---|
| |||
...it from a class template, which has a lot of template mixins inside. karcSamples[key... | |||
May 26, 2023 Learn » Re: Multiple destructors | |||
|---|---|---|---|
| |||
...the output of
```d
import std;
mixin template AddNewDtor()
{
~this()
{
writeln("Mixin dtor");
}
}
class Foo... | |||
May 26, 2023 Learn » Re: Multiple destructors | |||
|---|---|---|---|
| |||
Bug in the implementation of Mixin Template | |||
May 26, 2023 Learn » Multiple destructors | |||
|---|---|---|---|
| |||
...m talking about:
```d
import std;
mixin template AddNewDtor()
{
~this()
{
writeln("Mixin dtor");
}
}
class Foo... | |||
May 25, 2023 General » Re: Direct recursion detection possible? | |||
|---|---|---|---|
| |||
...build or otherwise optimized build, in non-template code, I’d probably like the compiler telling... | |||
May 25, 2023 General » Re: Direct recursion detection possible? | |||
|---|---|---|---|
| |||
Typo: s/template generation/template expansion/ | |||
Copyright © 1999-2021 by the D Language Foundation