Curiously recurring template pattern: Difference between revisions

Content deleted Content added
Adding move constructor to list of protected functions of Shape to imply inheritance requirement; happy to be overruled.
I believe the code is creating an anonymous object, with myStream as an input parameter. We should use normal parenthesis instead of curly brackets.
Line 132:
 
<syntaxhighlight lang="cpp">
Printer{(myStream}).println("hello").println(500);
</syntaxhighlight>