From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37396 invoked by alias); 5 Nov 2016 02:28:27 -0000 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 Received: (qmail 37376 invoked by uid 89); 5 Nov 2016 02:28:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Webmail, H*u:Webmail, H*UA:Roundcube, H*u:Roundcube X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 05 Nov 2016 02:28:24 +0000 Received: by simark.ca (Postfix, from userid 33) id D25451E18F; Fri, 4 Nov 2016 22:28:21 -0400 (EDT) To: Pedro Alves Subject: Re: [PATCH 1/3] enum_flags: Use C++11 std::underlying_type X-PHP-Originating-Script: 33:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 05 Nov 2016 02:28:00 -0000 From: Simon Marchi Cc: gdb-patches@sourceware.org In-Reply-To: <1478229738-24469-2-git-send-email-palves@redhat.com> References: <1478229738-24469-1-git-send-email-palves@redhat.com> <1478229738-24469-2-git-send-email-palves@redhat.com> Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.2 X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00104.txt.bz2 On 2016-11-03 23:22, Pedro Alves wrote: > template > class enum_flags > { > public: > typedef E enum_type; I have a question about this, even though it's not a change part of this patch. Is it useful to have a typedef to define enum_type? Can't we directly use template above the class?