From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7122 invoked by alias); 2 Jan 2010 21:24:57 -0000 Received: (qmail 7114 invoked by uid 22791); 2 Jan 2010 21:24:56 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=BAYES_00,MISSING_HEADERS X-Spam-Check-By: sourceware.org Received: from mail.antivirus.flexwebhosting.nl (HELO mail.antivirus.flexwebhosting.nl) (85.92.140.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 02 Jan 2010 21:24:51 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.antivirus.flexwebhosting.nl (Postfix) with ESMTP id AF4831218AAC for ; Sat, 2 Jan 2010 22:24:46 +0100 (CET) Received: from mail.antivirus.flexwebhosting.nl ([127.0.0.1]) by localhost (mail.antivirus.flexwebhosting.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JqRgKUha98L6 for ; Sat, 2 Jan 2010 22:24:41 +0100 (CET) Received: from srv4086.flexwebhosting.nl (unknown [89.18.179.86]) by mail.antivirus.flexwebhosting.nl (Postfix) with ESMTP id 317A51218A85 for ; Sat, 2 Jan 2010 22:24:40 +0100 (CET) Received: from ip82-139-82-108.lijbrandt.net ([82.139.82.108] helo=[192.168.2.132]) by srv4086.flexwebhosting.nl with esmtpa (Exim 4.67) (envelope-from ) id 1NRBSi-0004ab-JV for gdb-patches@sourceware.org; Sat, 02 Jan 2010 22:24:40 +0100 Message-ID: <4B3FB999.6010005@cyberfiber.org> Date: Sat, 02 Jan 2010 21:24:00 -0000 From: Michael User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 CC: gdb-patches@sourceware.org Subject: coding conventions Content-Type: multipart/mixed; boundary="------------070305010808030602010006" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00031.txt.bz2 This is a multi-part message in MIME format. --------------070305010808030602010006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 354 hi all, here's a first patch: it was generated using the command 'svn diff > ../boost.diff" questions on the formatting of new code (conforming standards used at gdb-patches@gnu.org): 1) can lines exceed the 80 character limit? 2) should standard indentation be taken as 2 or 4 white spaces? the attachment can be applied as such. Greetz, Michael --------------070305010808030602010006 Content-Type: text/x-patch; name="boost.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="boost.diff" Content-length: 2019 Index: boost/numeric/ublas/io.hpp =================================================================== --- boost/numeric/ublas/io.hpp (revision 58644) +++ boost/numeric/ublas/io.hpp (working copy) @@ -19,27 +19,40 @@ #include -namespace boost { namespace numeric { namespace ublas { +namespace boost +{ + namespace numeric + { + namespace ublas + { - template - // BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it. - std::basic_ostream &operator << (std::basic_ostream &os, - const vector_expression &v) { - typedef typename VE::size_type size_type; - size_type size = v ().size (); - std::basic_ostringstream > s; - s.flags (os.flags ()); - s.imbue (os.getloc ()); - s.precision (os.precision ()); - s << '[' << size << "]("; - if (size > 0) - s << v () (0); - for (size_type i = 1; i < size; ++ i) - s << ',' << v () (i); - s << ')'; - return os << s.str ().c_str (); - } + template + std::basic_ostream &operator << + (std::basic_ostream &os, const vector_expression &v) + { + typedef typename VE::size_type size_type; + size_type size = v ().size (); + + std::basic_ostringstream > s; + + s.flags (os.flags ()); + s.imbue (os.getloc ()); + s.precision (os.precision ()); + + s << '[' << size << "]("; + + if (size > 0) s << v () (0); + + for (size_type i = 1; i < size; ++ i) + { + s << ',' << v () (i); + s << ')'; + } + + return os << s.str ().c_str (); + } + template // BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it. std::basic_istream &operator >> (std::basic_istream &is, --------------070305010808030602010006--