Return-Path: X-Original-To: apmail-stdcxx-dev-archive@www.apache.org Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC445DF0D for ; Sat, 15 Sep 2012 21:19:39 +0000 (UTC) Received: (qmail 78946 invoked by uid 500); 15 Sep 2012 21:19:39 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 78908 invoked by uid 500); 15 Sep 2012 21:19:39 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 78900 invoked by uid 99); 15 Sep 2012 21:19:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Sep 2012 21:19:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stefan.teleman@gmail.com designates 209.85.220.182 as permitted sender) Received: from [209.85.220.182] (HELO mail-vc0-f182.google.com) (209.85.220.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Sep 2012 21:19:33 +0000 Received: by vcbfw7 with SMTP id fw7so6306464vcb.41 for ; Sat, 15 Sep 2012 14:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ova7PY9m/Z4HTxUYZry6p1PQOgYsAhbJuwAgA5BxWh0=; b=f2ZKoN8kD3OrML0m9JEc2MAMMX/OPXoGbBWBKgZYFZoOrSY7pNZyl0nPVeaZNmTXkE dugB0U2T6CTvER1gTZE6XhuHSkwRfSsP9gYPTAqZ5MuyBbSqCDEt0dXrXsEvuUM7HZ4s 7v+NtBEohyz0May7vu7LtYzz7q5G6ue/YIWtZVAb2mT6MKTrka6Z0W48SWEdcG4+P64L MiI0JBJEJ69qzlNjSzsa2Yhpa3k2tS3z4PFSxsOQYoLzyYgxMPRU5Ays/6JW9HqfB8A4 Bm13JCYdplsp4GsjQnGJq3d7rP/Lc0rB1duPN8Ol6+esYYr7ESCet1Mm5jFuPRKGoX5w WgNA== MIME-Version: 1.0 Received: by 10.58.31.228 with SMTP id d4mr5290673vei.40.1347743952441; Sat, 15 Sep 2012 14:19:12 -0700 (PDT) Received: by 10.58.29.164 with HTTP; Sat, 15 Sep 2012 14:19:12 -0700 (PDT) In-Reply-To: <5054EBD1.2010802@hates.ms> References: <5054B4B1.8040502@hates.ms> <5054EBD1.2010802@hates.ms> Date: Sat, 15 Sep 2012 17:19:12 -0400 Message-ID: Subject: Re: STDCXX-1066 [was: Re: STDCXX forks] From: Stefan Teleman To: dev@stdcxx.apache.org Content-Type: text/plain; charset=UTF-8 On Sat, Sep 15, 2012 at 4:57 PM, Liviu Nicoara wrote: > Yes, but it restores the default packing, not an arbitrary one, potentially > set by the user prior to including our headers. Say, the user sets 2, the > default is 4 and we set 8. When we set it to default it goes back to 4, > instead of the expected 2. Did I get this right? This is true, but leaving some arbirary pragma pack(N) (for N != 0) in effect for the duration of a program, and expecting it to work sounds like a very defective programming approach to me. It will certainly not work on SPARC at all. if the program needs to pack something in a certain specific way, it need to do so for that specific something only. Otherwise the side-effects of globally setting a non-default packing will destroy the program anyway. --Stefan -- Stefan Teleman KDE e.V. stefan.teleman@gmail.com