bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] nested templates


From: Teppo Mäenpää
Subject: [Bug-indent] nested templates
Date: Wed, 6 Oct 2004 09:55:47 +0300 (EEST)


Hi,

running indent on c++ code which contains nested templates causes
warnings due to adjacent > -characters, at least in recent g++ compilers.

=====

address@hidden tmp]$ cat foo3.cc
#include <vector>
void bar (std::vector<std::vector<int * > > )
{}
address@hidden tmp]$ g++ -c foo3.cc
address@hidden tmp]$ indent foo3.cc
address@hidden tmp]$ g++ foo3.cc
foo3.cc:3: error: `>>' should be `> >' within a nested template argument list
address@hidden tmp]$ indent --version
GNU indent 2.2.9
address@hidden tmp]$ cat foo3.cc
#include <vector>
void
bar (std::vector < std::vector < int *>>)
{
}
address@hidden tmp]$






reply via email to

[Prev in Thread] Current Thread [Next in Thread]