This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] c++0x <system_error> CD updates


Chris Fairles wrote:
> I have a feeling I'm missing something obvious here...
>   
I think this is one of those static initialization order issues, often
very annoying.

In fact, these:

  static const error_category& system_category = get_system_category();
  ...

didn't really convince me, when I looked at the existing code: at
minimum, we are going to have one instance of system_category & co in
each translation unit. No good. Can't we export the statics from the
.so, as usual in such cases?

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]