update cpp snip