Re: Overloading Based on Constraints

2015-07-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/23/15 5:58 PM, jmh530 wrote: I was looking at http://dlang.org/concepts.html where it discusses overloading templates based on constraints. I wanted to try to overload a template function with another version that does everything in place. So basically, one has a return and the other

Overloading Based on Constraints

2015-07-23 Thread jmh530 via Digitalmars-d-learn
I was looking at http://dlang.org/concepts.html where it discusses overloading templates based on constraints. I wanted to try to overload a template function with another version that does everything in place. So basically, one has a return and the other doesn't. However, when I run the code