The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.c++
From: Gerhard Fiedler <geli...@gmail.com>
Date: Tue, 19 Jun 2012 22:16:13 -0300
Local: Tues, Jun 19 2012 9:16 pm
Subject: Re: Generic ostream operator<<?
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! :)
Gerhard
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.
| ||||||||||||||