1 struct Dense { 2 static const unsigned int dim = 1; 3 }; 4 5 template <template <typename> class View, 6 typename Block> 7 void operator+(float, View<Block> const&); 8 9 template <typename Block, 10 unsigned int Dim = Block::dim> 11 struct Lvalue_proxy { 12 operator float() const; 13 }; 14 15 void test_1d(void)16test_1d (void) 17 { 18 Lvalue_proxy<Dense> p; 19 float b; 20 b + p; 21 } 22