From owner-freebsd-ports@freebsd.org Wed Nov 29 21:32:41 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B458DEA66D for ; Wed, 29 Nov 2017 21:32:41 +0000 (UTC) (envelope-from yuri@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E9346659E4 for ; Wed, 29 Nov 2017 21:32:40 +0000 (UTC) (envelope-from yuri@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E856EDEA66C; Wed, 29 Nov 2017 21:32:40 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E650DDEA66B for ; Wed, 29 Nov 2017 21:32:40 +0000 (UTC) (envelope-from yuri@freebsd.org) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id D2A8B659E3 for ; Wed, 29 Nov 2017 21:32:40 +0000 (UTC) (envelope-from yuri@freebsd.org) Received: from yv.noip.me (c-24-6-186-56.hsd1.ca.comcast.net [24.6.186.56]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id vATLWXuC035583 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 29 Nov 2017 13:32:34 -0800 (PST) (envelope-from yuri@freebsd.org) X-Authentication-Warning: shell1.rawbw.com: Host c-24-6-186-56.hsd1.ca.comcast.net [24.6.186.56] claimed to be yv.noip.me To: "ports@freebsd.org" From: Yuri Subject: Correct __cplusplus where std::tr1::function turns into std::function ? Message-ID: <1c147960-69be-0d66-84d4-146acb8fb752@freebsd.org> Date: Wed, 29 Nov 2017 13:32:32 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 21:32:41 -0000 |This code picks the latter (tr1) version on 11,1-STABLE while the correct choice is the former variant. #elif __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800) using std::function; #else using std::tr1::function; #endif symbols What is the correct __cplusplus then? And how to find it for other symbols for future reference? (Googling failed to find it.) Thanks! Yuri |