Re: [boost] [typeof] on TPL suffix

AMDG Alexander Nasonov wrote:
TPL suffixes are sometimes inconvenient. I implemented a wrapper that derives from BOOST_TYPEOF(wrap(something)) in emulation mode.
The wrap function is
template<class T> mpl::identity<T> wrap(T&);
It's somewhat similar to BOOST_TYPEOF_NESTED_TYPEDEF but not a replacement for it. Is there any interest in my idea? I'm not quite sure how what you are doing helps. typename is required inside a template and illegal outside of one.
In Christ, Steven Watanabe

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
participants (2)
-
Alexander Nasonov
-
Steven Watanabe