Thanks! That works.
On Wed, Jun 18, 2008 at 8:15 PM, Andrew Pinski <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 18, 2008 at 11:06 PM, Andrew McPherson
> <[EMAIL PROTECTED]> wrote:
>> // Neither of the following compile, though they do in visual studio.
>>
>> template
>> struct MyStruct
>> {
>>
On Wed, Jun 18, 2008 at 11:06 PM, Andrew McPherson
<[EMAIL PROTECTED]> wrote:
> // Neither of the following compile, though they do in visual studio.
>
> template
> struct MyStruct
> {
>MyStruct()
>{
>std::vector::iterator i;
You missed the typename keyword.
That i
// Neither of the following compile, though they do in visual studio.
template
struct MyStruct
{
MyStruct()
{
std::vector::iterator i;
}
};
template
struct MyStruct1
{
MyStruct1()
{
std::vector*>::iterator i;