X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.h;fp=source%2Fglsl%2Fsyntax.h;h=9bc3c5a872e865ea9f6506bfcc4d1ba04524144e;hp=6129421133b0d02ccb416758cf105758a956b01d;hb=d4b8a3f67c1f7184124bf95caee7e36ae8d6c82a;hpb=fb5f83c2e3f8f8a6a6444a33bec15e9477a487d1 diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index 61294211..9bc3c5a8 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -96,6 +96,9 @@ class NodeContainer: public C public: NodeContainer() { } NodeContainer(const NodeContainer &); + + void push_back_nocopy(const typename C::value_type &v) + { C::push_back(0); C::back() = v; } }; template