tag:blogger.com,1999:blog-8638474063464489651.post5211504676636630993..comments2024-01-15T11:38:29.051-08:00Comments on Multi-paradigm: The Importance of Function ObjectsSplinter of Chaoshttp://www.blogger.com/profile/14715348728512729776noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8638474063464489651.post-43007081531621248462012-11-30T03:47:56.937-08:002012-11-30T03:47:56.937-08:00Does it not compile? Ubuntu's gcc 4.7 has no p...Does it not compile? Ubuntu's gcc 4.7 has no problem with it, but I added that function--seems good. Thank you.Splinter of Chaoshttps://www.blogger.com/profile/14715348728512729776noreply@blogger.comtag:blogger.com,1999:blog-8638474063464489651.post-69759271204659963842012-11-30T00:01:35.317-08:002012-11-30T00:01:35.317-08:00Hi there. Very nice article!
Just a note: maybe i...Hi there. Very nice article!<br /><br />Just a note: maybe in your Printer example you missed a sort of generic to_string function to make your example compile. Something like that suffices:<br /><br />template<br />string to_string( const T& s ) {<br /> ostringstream ss;<br /> ss << s;<br /> return ss.str();<br />}<br /><br />Cheers!<br /><br />MarcoMarcohttps://www.blogger.com/profile/00410135816124135213noreply@blogger.com