Luca Risolia wrote:Aha! I had the distinct impression that there was something along these
> On 19/06/2012 21:30, Gerhard Fiedler wrote:
>> Is there a way to define this template function so that it is only
>> instantiated for classes that implement this print() function? (I could
>> make the name such that it is very unlikely that any other class has
>> such a name.)
> Yes, there is a way:
> #include <type_traits>
> template < class Printable,
lines, but this way of using templates is still not fluent for me. I
guess this either works or it gets me going towards something that will
work for my purposes.
Thank you... the only post so far that actually answered my question! :)
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.