From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 273C43850234 for ; Thu, 30 Jun 2022 04:36:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 273C43850234 Received: by mail-ej1-x633.google.com with SMTP id ge10so36586411ejb.7 for ; Wed, 29 Jun 2022 21:36:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=1M3o14S2aXU120zMOx+vM67rSwNASBt1iMy7JbFaixE=; b=DpXIp/SFus9xtT3e6kQ0rM8tZnWXWBcs3G/1OiDpkz4LpAmRU8Ns/dm6W/YcWq0utW 9VDgnx9PA7xa+9wQEZO3jALy23n02cPFg0ddUa7Gj3bBAmAJjUfN9LxLcTZH6AuK86kb rXwq5I609NH8zEu91W8NPm5Z7Mz8D6WREQ5x/JNQ0kYPg9UcRkBIo6yNzjRP94bFEqIV VCUzc2eomV6XbOilllkyhqfghiWuTvU/retAqhd4GyGcdoF10fS5xT0xZyp0SX3yAFh1 dGo4LOEVrXuKyLlZ4mkCMDSNKaK6aKkIlOV9sCRv3u6L1ZE8f8m+rerJe9ByLhOX5tWb XIwA== X-Gm-Message-State: AJIora8hsuIS50wuFYhtRu8J4Jh6MgzOBBjB1iC/rSyy8U8yQpYM8O+M cx2nMjtpBGKlyqSgdUTTN54= X-Google-Smtp-Source: AGRyM1sLgcGhUq4+pOvz64RtdPAAJP0BX1iPEjOfJboKaxJKAiv2ZkrjvbmamfC0WpMHKcSeDTRgpg== X-Received: by 2002:a17:907:3f29:b0:722:e5b0:ebe7 with SMTP id hq41-20020a1709073f2900b00722e5b0ebe7mr6708135ejc.335.1656563764515; Wed, 29 Jun 2022 21:36:04 -0700 (PDT) Received: from [10.25.0.53] ([109.190.253.11]) by smtp.googlemail.com with ESMTPSA id kw24-20020a170907771800b0072a3216c23asm1444313ejc.154.2022.06.29.21.36.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 21:36:03 -0700 (PDT) Message-ID: <28ef4daf-20c0-0e14-f4f0-5a53397bff88@gmail.com> Date: Thu, 30 Jun 2022 06:36:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: string::find(string_view) is missing from Content-Language: fr To: Jonathan Wakely , cauldwell.thomas@gmail.com Cc: libstdc++ References: From: =?UTF-8?Q?Fran=c3=a7ois_Dumont?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 04:36:09 -0000 On 24/06/22 12:07, Jonathan Wakely via Libstdc++ wrote: > On Fri, 24 Jun 2022 at 08:45, Frederick Virchanza Gotham via Libstdc++ > wrote: >> I was hoping to replace "std::string" with "__gnu_debug::string" in my >> program, but when I do so, it no longer compiles. >> >> It fails to compile because "__gnu_debug::string" is missing the >> member function: >> >> template >> constexpr size_type find( StringViewLike const &t, size_type pos = >> 0u ) const noexcept; >> >> This member function was added in C++17. Are there any intentions to >> add it to __gnu_debug? > There are probably other missing C++17 and C++20 changes too. It seems > nobody else is using that type so if you care about it, I would > encourage you to contribute to it. > Let me know if you started something regarding this Thomas. Otherwise I'll do it and also find a nice way to test __gnu_debug::string when running 'make check-debug'.