From owner-svn-src-all@FreeBSD.ORG Tue May 28 20:11:29 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 18E7BE02; Tue, 28 May 2013 20:11:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E4F1D2CE; Tue, 28 May 2013 20:11:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4SKBS0i026144; Tue, 28 May 2013 20:11:28 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4SKBSia026143; Tue, 28 May 2013 20:11:28 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201305282011.r4SKBSia026143@svn.freebsd.org> From: Dimitry Andric Date: Tue, 28 May 2013 20:11:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251066 - head/contrib/libc++/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 20:11:29 -0000 Author: dim Date: Tue May 28 20:11:28 2013 New Revision: 251066 URL: http://svnweb.freebsd.org/changeset/base/251066 Log: Fix warnings from newer clang versions about constexpr member functions not being implicitly const in libc++'s header. The warnings have been introduced because of new language rules recently adopted by the C++ WG. More info: MFC after: 3 days Modified: head/contrib/libc++/include/chrono Modified: head/contrib/libc++/include/chrono ============================================================================== --- head/contrib/libc++/include/chrono Tue May 28 18:51:30 2013 (r251065) +++ head/contrib/libc++/include/chrono Tue May 28 20:11:28 2013 (r251066) @@ -468,7 +468,7 @@ template ::type _Ct; return _Ct(__lhs).count() == _Ct(__rhs).count(); @@ -479,7 +479,7 @@ template struct __duration_eq<_LhsDuration, _LhsDuration> { _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR - bool operator()(const _LhsDuration& __lhs, const _LhsDuration& __rhs) + bool operator()(const _LhsDuration& __lhs, const _LhsDuration& __rhs) const {return __lhs.count() == __rhs.count();} }; @@ -509,7 +509,7 @@ template ::type _Ct; return _Ct(__lhs).count() < _Ct(__rhs).count(); @@ -520,7 +520,7 @@ template struct __duration_lt<_LhsDuration, _LhsDuration> { _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR - bool operator()(const _LhsDuration& __lhs, const _LhsDuration& __rhs) + bool operator()(const _LhsDuration& __lhs, const _LhsDuration& __rhs) const {return __lhs.count() < __rhs.count();} };