|
From: Dean M. B. <mik...@gm...> - 2007-06-12 03:59:31
|
On 6/11/07, Cheng Lian <rhy...@gm...> wrote:
>
> As gcc suggests, I added the `template' keyword as following, and it
> works fine:
>
> template <class Algorithm, class Selector>
> struct get_real_algorithm {
> typedef typename Algorithm::template type<Selector> type;
> };
>
> I haven't try the original code under any version of msvc, but I think
> msvc may be more fault tolerant than gcc. I had once encountered a
> similar situation about `typename' :-)
>
Indeed. Nice catch! Thanks Cheng!
--
Dean Michael C. Berris
http://cplusplus-soup.blogspot.com/
mikhailberis AT gmail DOT com
+63 928 7291459
|