> i've made patch to egcs (aka SGI) STL in order to > get proper declaration for friend templates. It seems that you could make the patch much smaller and avoid duplication of code (which makes the code harder to maintain) by defining a macro that expands either to <> or to nothing depending on __STL_NEW_FRIEND_TEMPLATES_DECL . Joe