Is this valid ISO C++?
From: Ioannis Vranos (ivr_at_remove.this.grad.com)
Date: 03/30/05
- Next message: Victor Bazarov: "Re: Is this valid ISO C++?"
- Previous message: Pete Becker: "Re: Allowing a functor or a function to be stored in a class"
- Next in thread: Victor Bazarov: "Re: Is this valid ISO C++?"
- Reply: Victor Bazarov: "Re: Is this valid ISO C++?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Mar 2005 03:53:05 +0300
This compiles with MINGW GCC 3.4.2 but not with my other compilers. Is it valid ISO C++?
#include <vector>
template< template<class> class ContainerTemplate, class ValueType>
inline void test(const ValueType &val)
{
ContainerTemplate<ValueType> container(val);
}
int main()
{
using namespace std;
test<vector>(10);
}
-- Ioannis Vranos http://www23.brinkster.com/noicys
- Next message: Victor Bazarov: "Re: Is this valid ISO C++?"
- Previous message: Pete Becker: "Re: Allowing a functor or a function to be stored in a class"
- Next in thread: Victor Bazarov: "Re: Is this valid ISO C++?"
- Reply: Victor Bazarov: "Re: Is this valid ISO C++?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|