Hello,
 How do we instantiate an object of class ctype_byname or collate_byname
 i tried  ctype_byname<char>& co = use_facet(loc,(ctype_byname<char>*)0) ;
but the compiler shows

Error: std::ctype_byname<char>::~ctype_byname() is
not accessible from main()

Error: Cannot use const std::ctype<char> to
initialize const std::ctype_byname<char>. 

but  ctype<char>& co = use_facet(loc,(ctype<char>*)0) ;
works fine        

the man pages say that ctype is used for the "C" locale and ctype_byname
is used for any named locales. So i guess the inforamation about the
locales is to be passed on to the object of class ctype_byname.

How is this done
I face similar problems with other *_byname functions

can anyone provide me with a snippet of code so as how to use this and
what is their diference
Regards,
Jeu

-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/

Reply via email to