220 15416 <68aabb4d-d894-4548-8708-8bca910dace1@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: ramaswamy.be@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Multiple files inclusion in single line
Date: Thu, 1 Jan 2015 02:30:13 -0800 (PST)
Lines: 111
Approved: news@gmane.org
Message-ID: <68aabb4d-d894-4548-8708-8bca910dace1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_4954_396713210.1420108213661"
X-Trace: ger.gmane.org 1420108224 22261 80.91.229.3 (1 Jan 2015 10:30:24 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 1 Jan 2015 10:30:24 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCENDX6MYEFRBN6DSSSQKGQETJQZA5Y@isocpp.org Thu Jan 01 11:30:18 2015
Return-path: <std-proposals+bncBCENDX6MYEFRBN6DSSSQKGQETJQZA5Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f69.google.com ([209.85.218.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCENDX6MYEFRBN6DSSSQKGQETJQZA5Y@isocpp.org>)
	id 1Y6d1F-0000p1-IN
	for gclcip-std-proposals@m.gmane.org; Thu, 01 Jan 2015 11:30:17 +0100
Original-Received: by mail-oi0-f69.google.com with SMTP id v63sf305222490oia.0
        for <gclcip-std-proposals@m.gmane.org>; Thu, 01 Jan 2015 02:30:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:content-type
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=TOxHbL4/rKYdCePyPpqVNi49KjNJ3LUvLzGb8xNdTto=;
        b=pygdQCNzq5euTvXDx1K/m1qBmI09uGiWOryjBNvEB+Bn86I42NcG7b677gH7SpGcx4
         yB7aVnta10xUhjB8N9Xx6O0RLSreBp255c1dhYi2NKCf7SZccQUqA22KS/UrAy7N+FwX
         e89H4ehY1oHmGf+HfZh/BFyvRlGjiWweBbtSEIoIPxpHv8oQsPUvHp1LLjzSPG9+cpV/
         KQUuyY712h9Wax+TtPHheRnDqsnrf00n0U3jWO8CD7HAM5MrSTuUdMmiyw74L0cXBzMy
         tYeY/7h6z8XK1nme/XPOXWaoFOop/yI8cXncgSoM1R67LkmENMIUUxT7fn/wOaMGFz+7
         C+ew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:subject:mime-version
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=TOxHbL4/rKYdCePyPpqVNi49KjNJ3LUvLzGb8xNdTto=;
        b=JLeOjubFHxAGuJ2oCikl0TDJqgN5RoDtN82pj7O4TjSq7nud/Sp1lcyOFbhnXG5PSp
         kPZZ4607SP10Zt8+4+GGkwVhDdqVS6kUrVh3r4mUWT+0VR6QRi0OQubDBPAf/uOXrp+8
         09L8GP/8xckHWv16k4vUEV0eEHOgHjiCWz6AUKYiakMhLYo4hl5sy8PMpZl7tbZrtcDV
         uR7nrB9vnze+i+WaH3SKo9ypcJ7KgObMWACC5X0/KziKNWsTB1dNJR5dOFO5DN37OVpB
         uRjeyHlNaF5jAilzFZEMIX9NZMHyPBH2ZU/C/K8TAhfGgksUuOAURAypFeUe+n7xxV5U
         YwQQ==
X-Gm-Message-State: ALoCoQlI0U/1UwhoOYeKGIDQOtnym1PS2xBzT54F6aSZmyctj2yY8GFIXuqERmYZ9g8PBeVx+GNX
X-Received: by 10.42.54.76 with SMTP id q12mr55745322icg.13.1420108216299;
        Thu, 01 Jan 2015 02:30:16 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.114.33 with SMTP id jd1ls1153640igb.2.canary; Thu, 01 Jan
 2015 02:30:15 -0800 (PST)
X-Received: by 10.50.142.37 with SMTP id rt5mr682315igb.17.1420108215097;
        Thu, 01 Jan 2015 02:30:15 -0800 (PST)
X-Original-Sender: ramaswamy.be@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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:15416
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15416>

------=_Part_4954_396713210.1420108213661
Content-Type: multipart/alternative; 
	boundary="----=_Part_4955_1769680182.1420108213661"

------=_Part_4955_1769680182.1420108213661
Content-Type: text/plain; charset=UTF-8

Hi All,

While including multiple files we follow the syntax like this (both C and 
C++)

#include <iostream>
#include <memory>
#include <thread>
#include <chrono>
#include <mutex>

Instead of doing like above, it is convenient if we can include multiple 
 files in single line

*#include <iostream, memory, thread, chrono, mutex>*
*OR *
*#include <[iostream, memory, thread, chrono, mutex]>*

It makes some time very useful to include the long path inclusion files

For examples 
We normally include the boost log  files like below 

#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/expression.hpp>
#include <boost/log/sinks/text_file_backend.hpp>
#include <boost/log/utility/setup/files.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/log/sources/record_ostream.hpp>

It can include in the fashion similar  Bash shell file reference 

*#include <boost/log/{core,trivial,expression}.hpp>*
*#include <boost/log/{utility/setup/{files,common_attributes} 
sources/{severity_logger,record_ostream}.hpp>*

It can be formatted bit more better

Let me know your thoughts about this.

Regards
Ramaswamy B.A

-- 

--- 
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 email 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-proposals/.

------=_Part_4955_1769680182.1420108213661
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All,<div><br></div><div>While including multiple files =
we follow the syntax like this (both C and C++)</div><div><br></div><div>#i=
nclude &lt;iostream&gt;</div><div>#include &lt;memory&gt;</div><div>#includ=
e &lt;thread&gt;</div><div>#include &lt;chrono&gt;</div><div>#include &lt;m=
utex&gt;</div><div><br></div><div>Instead of doing like above, it is conven=
ient if we can include multiple &nbsp;files in single line</div><div><br></=
div><div><i><font color=3D"#0000ff">#include &lt;iostream, memory, thread, =
chrono, mutex&gt;</font></i></div><div><i><font color=3D"#0000ff">OR&nbsp;<=
/font></i></div><div><i><font color=3D"#0000ff">#include &lt;[iostream, mem=
ory, thread, chrono, mutex]&gt;</font></i><br></div><div><br></div><div>It =
makes some time very useful to include the long path inclusion files</div><=
div><br></div><div>For examples&nbsp;</div><div>We normally include the boo=
st log &nbsp;files like below&nbsp;</div><div><br></div><div>#include &lt;b=
oost/log/core.hpp&gt;</div><div>#include &lt;boost/log/trivial.hpp&gt;</div=
><div>#include &lt;boost/log/expression.hpp&gt;</div><div>#include &lt;boos=
t/log/sinks/text_file_backend.hpp&gt;</div><div>#include &lt;boost/log/util=
ity/setup/files.hpp&gt;</div><div>#include &lt;boost/log/utility/setup/comm=
on_attributes.hpp&gt;</div><div>#include &lt;boost/log/sources/severity_log=
ger.hpp&gt;</div><div>#include &lt;boost/log/sources/record_ostream.hpp&gt;=
</div><div><br></div><div>It can include in the fashion similar &nbsp;Bash =
shell file reference&nbsp;</div><div><br></div><div><font color=3D"#0000ff"=
><i>#include &lt;boost/log/{core,trivial,expression}.hpp&gt;</i></font></di=
v><div><font color=3D"#0000ff"><i>#include &lt;boost/log/{utility/setup/{fi=
les,common_attributes} sources/{severity_logger,record_ostream}.hpp&gt;</i>=
</font></div><div><br></div><div>It can be formatted bit more better</div><=
div><br></div><div>Let me know your thoughts about this.</div><div><br></di=
v><div>Regards</div><div>Ramaswamy B.A</div><div><br></div></div>

<p></p>

-- <br />
<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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<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 />

------=_Part_4955_1769680182.1420108213661--
------=_Part_4954_396713210.1420108213661--

.
