I am not the administrator, but I can tell you his opinion. (I have explicitly asked him about it before.)
He does not want to have an explicit copyright or other legalese for code posted anywhere on the site. His opinion is that it is there and free to use.
Legally, that is essentially a no-man's land of “don’t touch”, but practically it is the same as “Public Domain.”
Any code on this site can have a more explicit directive, of course.
Most of non-obvious/non-trivial stuff I post can be considered Boost Licensed, and where it matters I explicitly mark it as such. Where I don’t mark it as such it is basically free to take and do with as you wish.
Otherwise, I think you are safe simply attributing the source if you use it. You may need to wrangle your legal department for wording, like
Written by <username> and available for public use from cplusplus.com
<URL to source> |
or
Modified from code written by <username> and available for public use from cplusplus.com
<URL to source>
|
IANAL, so again, where it matters, run it by your legal department.
Though, honestly, almost everything you find here is fairly obvious, and would be very difficult to bind in legal proceedings against your use of it.
(IIRC, courts have already several times found that writing code which simply uses library functions as intended — that is, writing code that can only reasonably be written one way — cannot be copy protected.)
And remember, IANAL. If it matters, get one and ask him
his opinion.