Talk:cpp/locale/ctype char

Isn't using a static vector in the example wrong because a destructor of some static object may write to cout when the vector is already destroyed? How about a private data member or using operator new? 79.126.13.46 08:10, 4 May 2015 (PDT)
 * cout was never imbued with a locale that holds a reference to this custom facet. Only the stream was, and that is local to main. --Cubbi (talk) 08:20, 4 May 2015 (PDT)
 * Oh, right. Anyway, it's probably not good for an example because it has such a non-obvious usage restriction. 79.126.13.46 09:16, 4 May 2015 (PDT)