C++11: Fix use of >> in template arguments.

Change-Id: Ic99ca897e7a3b9c82cf8c5093a90bf9c88dbb0ed
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kamm
2012-09-18 12:57:51 +02:00
committed by hjk
parent 44c9cef30a
commit 392c80c6e4
6 changed files with 57 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
template <class i, int j = 1>
class Y {};
template <int i>
class X {};
Y<X<6>, 7> x;
Y<X<1>> y;
X< (1 >> 2) > z;
auto a = static_cast<X<1>>(X<1>());