From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 3430B3857033 for ; Fri, 30 Oct 2020 11:33:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3430B3857033 Received: by mail-wm1-x335.google.com with SMTP id p22so2533873wmg.3 for ; Fri, 30 Oct 2020 04:33:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BxGjFLMzFsDcJjTHRVmrEQ6P4NBxvsJbS7cY2K+dquA=; b=C6ODqdp5SVjCejSa6Q+zaLut472bdZ74qP5vjGsus1ih/gvfmUGdVzZevRvSGP3963 wSFfn91G6ZlEsIhtUBRnHkB3kmkCSvaI0kRnGDRAJTMwbgTxqNlYTnXrUKhLOvQAE9aA juDE+G5eW71eaOrijynJp8E2wi0JP5RJMHkUBLVvWntUeOjMQb/WDn2gT2LK7OWhftR+ gc2kC5eTqeBhubkj7TkapP0FMZJhRdjKvf1rOVz30Qe39kM/XnyVoqPcBWWFY3K/Nn7X IjJRHN6ASXXAsEE+KAX+bEC2ie3Xya0Ok3uCr1yDe10c2j5IHytbsaPwbeMBgMwBecdw wUXA== X-Gm-Message-State: AOAM533PIuzknIi8xspWjMYwjipG7+uT4fbACQXyhyhb2Wf771MEWBQq xZ3jcidcMBe1zuORPTrdNE71cP530hlUT3jPtTY= X-Google-Smtp-Source: ABdhPJy2TUTL7+ht146biS4B86bAlJPufgybgXE1XcID1vmywACWsZxn5txI+NGhLbeYpiQiMHMeDe9mpVgkkMCVcJY= X-Received: by 2002:a7b:c085:: with SMTP id r5mr2078979wmh.17.1604057621301; Fri, 30 Oct 2020 04:33:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Fri, 30 Oct 2020 11:33:30 +0000 Message-ID: Subject: Re: Pointlessly fragile constexpr vector implementation I need some guidance on. To: Josh Marshall Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2020 11:33:43 -0000 On Wed, 28 Oct 2020 at 01:10, Josh Marshall via Gcc-help wrote: > > Hello all, > > This side project is definitely showing me a few of my shortcomings as a > programmer, so please bear with me while I try to learn. I have an > implementation of constexpr vector which works in the null case, but fails > on any case when it is constructed with contents or has contents added. Let's discuss this on the libstdc++ mailing list, not gcc-help. I'll reply there instead.