{%raw%} and {%endraw%} around {{

This commit is contained in:
Andrew Pardoe
2016-03-20 17:06:20 -07:00
parent ca0ebb66f6
commit e5d4ec34f0

View File

@@ -9787,7 +9787,7 @@ In the rare cases where the slicing was deliberate the code can be surprising.
class Shape { /* ... */ };
class Circle : public Shape { /* ... */ Point c; int r; };
Circle c { {0,0}, 42};
Circle c {{%raw%}.{{%endraw%}.0,0}, 42};
Shape s {c}; // copy Shape part of Circle
The result will be meaningless because the center and radius will not be copied from `c` into `s`.