From patchwork Mon Jun 4 16:07:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 925148 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-479035-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="wcgQ1g+w"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4100FT4Q0cz9rvt for ; Tue, 5 Jun 2018 02:07:25 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=yd8mbni0eK4g/qkwwU5GQhq3u/R1Tx0eqKf/+s7QvEymm2nu3mbH/ QBKsKQsbth134uLCXXo4plrE5EJZijre8dnuCgzcPjK14UNg0btBkWyZD/8pmpb2 t61KxhbVEv+y49O1UU1RjyV4grdHNBMC5C+EWJ7E3UzEWgS8m+W720= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=xip3kJeonRRWVAG73AFgseOmC4E=; b=wcgQ1g+wSU5jQSOCK+zv AyITMbeHTCtL39ZQ15udlw6HXSHtqxfpAaaR9y9jeuq+dT8IBpd1vY/ldMtnKWSV 6/acaPdEcqWVqU3xrpw8AwK1DbcTrPhaPY+lDEIPoxOOcXy+igZ+oQ7r3+45JvKA 7e9XrJ9nPYzobvwVxa7PlZ4= Received: (qmail 51516 invoked by alias); 4 Jun 2018 16:07:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 51449 invoked by uid 89); 4 Jun 2018 16:07:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Jun 2018 16:07:16 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A164981A8ECF; Mon, 4 Jun 2018 16:07:14 +0000 (UTC) Received: from localhost (unknown [10.33.36.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id 56A0920284D6; Mon, 4 Jun 2018 16:07:14 +0000 (UTC) Date: Mon, 4 Jun 2018 17:07:13 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] Define std::fpos special members as defaulted Message-ID: <20180604160713.GA14057@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.2 (2017-12-15) * include/bits/postypes.h (fpos): Define special members as defaulted. Tested powerpc64le-linux, committed to trunk. commit 24dddbfdccf816b749601980ed05d2bce72e3d24 Author: Jonathan Wakely Date: Mon Jun 4 16:50:29 2018 +0100 Define std::fpos special members as defaulted * include/bits/postypes.h (fpos): Define special members as defaulted. diff --git a/libstdc++-v3/include/bits/postypes.h b/libstdc++-v3/include/bits/postypes.h index ba7c54781e8..8abdbf02322 100644 --- a/libstdc++-v3/include/bits/postypes.h +++ b/libstdc++-v3/include/bits/postypes.h @@ -133,6 +133,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION fpos(streamoff __off) : _M_off(__off), _M_state() { } +#if __cplusplus >= 201103L + fpos(const fpos&) = default; + fpos& operator=(const fpos&) = default; + ~fpos() = default; +#endif + /// Convert to streamoff. operator streamoff() const { return _M_off; }