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


Groups > comp.lang.c++ > #14640 > unrolled thread

#include and namespaces

Started byLuca Cerone <luca.cerone@gmail.com>
First post2012-03-01 00:34 -0800
Last post2012-03-03 04:22 -0800
Articles 3 on this page of 23 — 10 participants

Back to article view | Back to comp.lang.c++


Contents

  #include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-01 00:34 -0800
    Re: #include and namespaces Victor Bazarov <v.bazarov@comcast.invalid> - 2012-03-01 07:54 -0500
      Re: #include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-01 06:38 -0800
        Re: #include and namespaces Victor Bazarov <v.bazarov@comcast.invalid> - 2012-03-01 14:26 -0500
          Re: #include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-02 00:47 -0800
      Re: #include and namespaces yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2012-03-01 17:38 +0000
        Re: #include and namespaces Gareth Owen <gwowen@gmail.com> - 2012-03-01 18:07 +0000
          Re: #include and namespaces yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2012-03-01 18:52 +0000
            Re: #include and namespaces Paavo Helde <myfirstname@osa.pri.ee> - 2012-03-01 15:13 -0600
        Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-01 19:07 +0100
          Re: #include and namespaces yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2012-03-02 08:02 +0000
            Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-02 11:12 +0100
    Re: #include and namespaces Anand Hariharan <mailto.anand.hariharan@gmail.com> - 2012-03-01 11:20 -0800
      Re: #include and namespaces Victor Bazarov <v.bazarov@comcast.invalid> - 2012-03-01 14:30 -0500
        Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-01 20:53 +0100
          Re: #include and namespaces Miles Bader <miles@gnu.org> - 2012-03-02 09:51 +0900
          Re: #include and namespaces Daniel <danielaparker@gmail.com> - 2012-03-02 05:13 -0800
            Re: #include and namespaces Miles Bader <miles@gnu.org> - 2012-03-02 22:59 +0900
              Re: #include and namespaces Daniel <danielaparker@gmail.com> - 2012-03-02 10:31 -0800
                Re: #include and namespaces Miles Bader <miles@gnu.org> - 2012-03-03 10:54 +0900
                Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-03 08:53 +0100
    Re: #include and namespaces Juha Nieminen <nospam@thanks.invalid> - 2012-03-02 18:37 +0000
      Re: #include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-03 04:22 -0800

Page 2 of 2 — ← Prev page 1 [2]


#14701

From"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>
Date2012-03-03 08:53 +0100
Message-ID<jisimc$40s$1@dont-email.me>
In reply to#14696
On 02.03.2012 19:31, Daniel wrote:
> On Mar 2, 8:59 am, Miles Bader<mi...@gnu.org>  wrote:
>> Daniel<danielapar...@gmail.com>  writes:
>>> What would you do about something like boost::gregorian::date? I'm
>>> hesitant to have "date" inside even a custom namespace.
>>
>> Why?  Isn't the entire _point_ of namespaces to make such things
>> reasonable?
>>
> What if the class was some_namespace::i?

     namespace sni = some_namespace::i;

     sni::foobar();


> boost::gregorian::date is a
> little different from that, but not that much different. It doesn't
> help that the standard library and boost both follow naming
> conventions for class names that are not common in other code. Hence,
> perhaps, the greater number of hits accorded "typedef
> boost::gregorian::date Date" etc. versus "using
> boost::gregorian::date".

Yah.


Cheers,

- Alf

[toc] | [prev] | [next] | [standalone]


#14697

FromJuha Nieminen <nospam@thanks.invalid>
Date2012-03-02 18:37 +0000
Message-ID<4f51135e$0$4366$7b1e8fa0@news.nbl.fi>
In reply to#14640
Luca Cerone <luca.cerone@gmail.com> wrote:
> I'd like not to write std:: in front of every of such types.

  Why?

[toc] | [prev] | [next] | [standalone]


#14704

FromLuca Cerone <luca.cerone@gmail.com>
Date2012-03-03 04:22 -0800
Message-ID<23617239.620.1330777376098.JavaMail.geo-discussion-forums@vbkl3>
In reply to#14697
On Friday, March 2, 2012 6:37:18 PM UTC, Juha Nieminen wrote:
> 
>   Why?
..just laziness... 

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.c++


csiph-web