Just random thoughts about that...
Officially, everything I code at work belongs to my employer. Everything I write at home is mine.
Now, most of the interesting code I write is done at home... It is a fact of life... :-)
If I bring it at work, this pasted snippet of code becomes "property" of my employer in the sense I have no right to take it back. Now, as this code was "copy/pasted" from elsewhere (i.e. my home, on my personal time), my employer have no right to stop me using the original code elsewhere. And if he/she's bright enough, she will prefer to have me silently update the at-work code with the bug corrections from the at-home code.
In a similar way, I started writing an HTML document with my "C++ tips, knowledge, etc." My employer was interested in it (adding it to the internal Wiki), so I have added a Creative Commons to the document (and have had removed a license on the Wiki saying everything inside was my employer's), and I only work on it at home, but for the more trivial modifications (i.e. typos, etc.). As already mentioned before, a good way to be sure everyone understands who's owning what is to publish the document on the Internet before giving it to. Anyway, the wiki version is always one or two (or more) steps behind the original HTML version...
As for snippets of code, like "an empty Visual C++ DLL project" or "my split function to split a string into a vector of string", it could be both easily reproduced at home (i.e. not patentable), and mostly not an industry secret, so I guess no one really cares about that.
Now, should I bring back home a full strategic source code, on which my employer is supposed to have an edge over the, like the "in-company XML engine" or "tax optimizer engine", I believe my employer would be rightly pissed off. And I could well be rightly sued and condemned for that.
So... Don't bring home code that is among the "edge code" or the "business code" of your employer. Anything else he/she won't care, I guess. The whole game is finding what is business code, and what is "generic code".
Now, I am not sure, but some employers use copy/pasted sources without keeping the licenses (this is evil, but, hey... Not everyone is as law-abiding as you and I). If you find yourself working inside one, just remind the potentially pissed-off employer that they are less than pristine in the copy/paste sin. He/she has a lot more to lose than you have if he/she sues you for your little "split" function only to be counter-sued by the author of the XML parser whose license disappeared from the sources.