Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-02-02 02:17:08


Steven Watanabe wrote:
> I'm not quite sure how what you are doing helps.
> typename is required inside a template and illegal
> outside of one.

Compare

struct nested
{
    typedef typename encode_begin< .... >::type type;
    // ^^^^^^^^ required only in certain cases.
};

with

struct nested : encode_begin< .... >
// ^ no typename here.
{
};

-- 
Alexander Nasonov
http://nasonov.blogspot.com
Man is equally incapable of seeing the nothingness from which he
emerges and the infinity in which he is engulfed. -- Blaise Pascal
--
This quote is generated by: 
	/usr/pkg/bin/curl -L http://tinyurl.com/veusy         \
	  | sed -e 's/^document\.write(.//' -e 's/.);$/ --/'  \
	        -e 's/<[^>]*>//g' -e 's/^More quotes from //' \
	  | fmt | tee ~/.signature-quote

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk