<<Sure, but looking at the source code of the demangler would, perhaps. The ideas there are not protected, as long as you do not intend to copy the code, there is no issue. You can however copy the ideas behind the code quite freely. Ideas are not subject to copyright protection!