Search

May 27, 2023
Learn »
Yes I know there is template constraint, but not with specialized overloading right?

so you...
May 27, 2023
Learn »
D solution is called [template constraints](https://dlang.org/spec/template.html#template_constraints).
May 27, 2023
Learn »
```
template <typename T>
concept HasMagma = requires(T l) { l.magma(); };

struct LavaMan {
  void magma() { std...
May 26, 2023
Learn »
...workaround that I can implement inside my template things, so the business logic could be...
May 26, 2023
Learn »
...it from a class template, which has a lot of template mixins inside.

karcSamples[key...
May 26, 2023
Learn »
...the output of

```d
import std;

mixin template AddNewDtor()
{
    ~this()
    {
        writeln("Mixin dtor");
    }
}

class Foo...
May 26, 2023
Learn »
Bug in the implementation of Mixin Template
May 26, 2023
Learn »
...m talking about:
```d
import std;

mixin template AddNewDtor()
{
    ~this()
    {
        writeln("Mixin dtor");
    }
}

class Foo...
May 25, 2023
General »
...build or otherwise optimized build, in non-template code, I’d probably like the compiler telling...
May 25, 2023
General »
Typo: s/template generation/template expansion/
139 140 141 142 143 144 145 146 147 148 149
Next ›   Last »