Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #11614

Re: How to avoid splitting namespace scope?

From laird@lbreyer.com
Newsgroups comp.lang.c++
Subject Re: How to avoid splitting namespace scope?
Date 2011-11-18 22:19 -0800
Organization http://groups.google.com
Message-ID <28940880.0.1321683551375.JavaMail.geo-discussion-forums@prgt40> (permalink)
References <1e180097-a703-4bc9-bf7d-b51afaf245ea@a5g2000vbb.googlegroups.com> <15905453.1326.1321678541309.JavaMail.geo-discussion-forums@prmf13> <0125ddd6-703f-4875-9424-cc0c083be824@m7g2000vbc.googlegroups.com>

Show all headers | View raw


The name() string's format depends on your compiler. 

With Visual C++ the string should be something like "class S::A".

With GCC, the name is mangled like "N1S1AE" and the string can be demangled using c++filt

$ c++filt -t N1S1AE
S::A

See also
http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt12ch39.html

Laird.

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to avoid splitting namespace scope? Jayden Shui <jayden.shui@gmail.com> - 2011-11-18 18:58 -0800
  Re: How to avoid splitting namespace scope? laird@lbreyer.com - 2011-11-18 20:55 -0800
    Re: How to avoid splitting namespace scope? Jayden Shui <jayden.shui@gmail.com> - 2011-11-18 21:27 -0800
      Re: How to avoid splitting namespace scope? laird@lbreyer.com - 2011-11-18 22:19 -0800
  Re: How to avoid splitting namespace scope? "Bo Persson" <bop@gmb.dk> - 2011-11-19 10:55 +0100

csiph-web