220 8688 <CAFdMc-214LLZ3GtZyd3rZ1MwM4Q0qaTZFZmkXuyDPVZDU6aJ=w@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "dgutson ." <danielgutson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Templetized namespaces
Date: Sun, 19 Jan 2014 15:26:57 -0200
Lines: 99
Approved: news@gmane.org
Message-ID: <CAFdMc-214LLZ3GtZyd3rZ1MwM4Q0qaTZFZmkXuyDPVZDU6aJ=w@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=047d7b15fb03096d8f04f056157f
X-Trace: ger.gmane.org 1390152414 19265 80.91.229.3 (19 Jan 2014 17:26:54 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 19 Jan 2014 17:26:54 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDE3NBMV6UFBBYUV6CLAKGQECCNPT5A@isocpp.org Sun Jan 19 18:27:02 2014
Return-path: <std-proposals+bncBDE3NBMV6UFBBYUV6CLAKGQECCNPT5A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f71.google.com ([209.85.220.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDE3NBMV6UFBBYUV6CLAKGQECCNPT5A@isocpp.org>)
	id 1W4w9E-0003su-QN
	for gclcip-std-proposals@m.gmane.org; Sun, 19 Jan 2014 18:27:01 +0100
Original-Received: by mail-pa0-f71.google.com with SMTP id kp14sf15474039pab.2
        for <gclcip-std-proposals@m.gmane.org>; Sun, 19 Jan 2014 09:26:59 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:date:message-id:subject:from:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=7+7eioGCw/Sz2Jztb/X1gJrE1x8EhUyHWOTzmteyZ60=;
        b=FJ2iABge4H3ljBDOtNTXKnTia5PXOkYg9YEd1NTA521ijzHhQh96aRN05BOFO+SI/T
         azkFUpo7E0wmtQpJfpqoyx0u2OeaPhsBiLaLm/1Uan3Uu6sot+4RBrfnGaKTDFOrIywy
         2nbP1Cz58NVoLhXek+G1XrcdpQOfEk8UHF+K+5PSwHY8NrY7R0eEzE7WlJ/sguJDQ1ma
         vD8EgD2XNQDr7vF3HxMDtlgyAJkWHA/tGJw5dwki7BR9F6l/h1gBRKqKgiwiVPFOidOq
         qyUiql6NmHISagdHxfUbKp9v3SaPQw9cOziIrJ5j/l82WucqGF3UK5u2JWjudhAh8set
         KMeA==
X-Gm-Message-State: ALoCoQmChh+hzDdVr+63oMxy6gqhnZhe8am2E1WZiQSe8vA/p5rIiqQn43juo7UQoQMyt2A/gYJI
X-Received: by 10.66.144.170 with SMTP id sn10mr931256pab.43.1390152419641;
        Sun, 19 Jan 2014 09:26:59 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.91.180 with SMTP id z49ls793920qgd.59.gmail; Sun, 19 Jan
 2014 09:26:58 -0800 (PST)
X-Received: by 10.236.94.131 with SMTP id n3mr155385yhf.138.1390152418912;
        Sun, 19 Jan 2014 09:26:58 -0800 (PST)
Original-Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [2607:f8b0:400e:c01::233])
        by mx.google.com with ESMTPS id g5si18073170yhd.37.2014.01.19.09.26.58
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sun, 19 Jan 2014 09:26:58 -0800 (PST)
Received-SPF: pass (google.com: domain of danielgutson@gmail.com designates 2607:f8b0:400e:c01::233 as permitted sender) client-ip=2607:f8b0:400e:c01::233;
Original-Received: by mail-pb0-f51.google.com with SMTP id un15so2397121pbc.10
        for <std-proposals@isocpp.org>; Sun, 19 Jan 2014 09:26:58 -0800 (PST)
X-Received: by 10.68.201.71 with SMTP id jy7mr14095049pbc.47.1390152417633;
 Sun, 19 Jan 2014 09:26:57 -0800 (PST)
Original-Received: by 10.70.78.200 with HTTP; Sun, 19 Jan 2014 09:26:57 -0800 (PST)
X-Original-Sender: danielgutson@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of danielgutson@gmail.com designates 2607:f8b0:400e:c01::233 as
 permitted sender) smtp.mail=danielgutson@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8688
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8688>

--047d7b15fb03096d8f04f056157f
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi.

   I found a number of situations where the ability to templetize
namespaces would be very useful.

My latest use case is this: I'm writing a library that is configured
through a number of (non-type) template arguments. Such configuration
affects to all the classes of the library. To be more specific, it's a
fault-tolerant library for the aerospace industry where the whole library
is tuned with some integers (some of then related to redundancy due to
ionizing radiation).

The most natural thing would be to put all the classes in a namespace, and
let the namespace be templetized with such arguments.
Moreover, a using namespace with the appropriate arguments would suffice
for all the application. For example:

    using namespace TheLibrary<arg1, arg2, arg3>;

I didn't write the proposal yet, since I'd like to get some feedback.

Thanks,

   Daniel.

ps: The library will be available soon and uses template metaprogramming
based on the arguments.


--=20
Who=92s got the sweetest disposition?
One guess, that=92s who?
Who=92d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

--047d7b15fb03096d8f04f056157f
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi.<div><br></div><div>=A0 =A0I found a number of situatio=
ns where the ability to templetize namespaces would be very useful.</div><d=
iv><br></div><div>My latest use case is this: I&#39;m writing a library tha=
t is configured through a number of (non-type) template arguments. Such con=
figuration affects to all the classes of the library. To be more specific, =
it&#39;s a fault-tolerant library for the aerospace industry where the whol=
e library is tuned with some integers (some of then related to redundancy d=
ue to ionizing radiation).</div>
<div><br></div><div>The most natural thing would be to put all the classes =
in a namespace, and let the namespace be templetized with such arguments.</=
div><div>Moreover, a using namespace with the appropriate arguments would s=
uffice for all the application. For example:</div>
<div><br></div><div>=A0 =A0 using namespace TheLibrary&lt;arg1, arg2, arg3&=
gt;;</div><div><br></div><div>I didn&#39;t write the proposal yet, since I&=
#39;d like to get some feedback.</div><div><br></div><div>Thanks,</div><div=
>
<br></div><div>=A0 =A0Daniel.</div><div><br></div><div>ps: The library will=
 be available soon and uses template metaprogramming based on the arguments=
..</div><div><br clear=3D"all"><div><br></div>-- <br>Who=92s got the sweetes=
t disposition?<br>
One guess, that=92s who?<br>Who=92d never, ever start an argument?<br>Who n=
ever shows a bit of temperament?<br>Who&#39;s never wrong but always right?=
<br>Who&#39;d never dream of starting a fight?<br>Who get stuck with all th=
e bad luck?=20
</div></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--047d7b15fb03096d8f04f056157f--

.
