4 ms·
can i say T : SomeConstraint ?
by moocowtruck 6y ago
can i say T : SomeConstraint ?
- jcelerier 6y agoin C++ ? sure template<SomeConstraint T> void F(T p) { ... } or just void F(SomeConstraint auto p) { ... } like this for instance: https://gcc.godbolt.org/z/hPM38T https://gcc.godbolt.org/z/hPM38T
- moocowtruck 6y agocool, can i even add two constraints? or is it limited to one. Oh i see you have include concepts, is that new to c++20 then?