From 79f790c2b9d6a368f61a99af07d04ed9348ca504 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Mon, 8 Apr 2013 14:40:21 -0500 Subject: Fixes for GCC 4.7 Change-Id: Ief0b9202e13bd70cf0de84ca3cb20f5c6df4d3d8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4035 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/include/util/functor.H | 52 +++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/include/util') diff --git a/src/include/util/functor.H b/src/include/util/functor.H index 037f4ddd8..b5bf1f9de 100644 --- a/src/include/util/functor.H +++ b/src/include/util/functor.H @@ -1,25 +1,25 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/include/util/functor.H $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2011 -// -// p1 -// -// Object Code Only (OCO) source materials -// Licensed Internal Code Source Materials -// IBM HostBoot Licensed Internal Code -// -// The source code for this program is not published or other- -// wise divested of its trade secrets, irrespective of what has -// been deposited with the U.S. Copyright Office. -// -// Origin: 30 -// -// IBM_PROLOG_END +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/util/functor.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ #ifndef __UTIL_FUNCTOR_H #define __UTIL_FUNCTOR_H @@ -75,7 +75,7 @@ namespace Util }; template - ALWAYS_INLINE + ALWAYS_INLINE inline ptr_to_unary_function<_ARG, _RESULT> ptr_fun(_RESULT (*f)(_ARG)) { return ptr_to_unary_function<_ARG,_RESULT>(f); @@ -97,7 +97,7 @@ namespace Util function_type function; public: - mem_ptr_to_unary_function(member_type& o, function_type f) + mem_ptr_to_unary_function(member_type& o, function_type f) : object(o), function(f) {}; _RESULT operator()(_ARG t) @@ -107,8 +107,8 @@ namespace Util }; template - ALWAYS_INLINE - mem_ptr_to_unary_function<_ARG, _RESULT, _CLASS> + ALWAYS_INLINE inline + mem_ptr_to_unary_function<_ARG, _RESULT, _CLASS> mem_ptr_fun(_CLASS& o, _RESULT (_CLASS::*f)(_ARG)) { return mem_ptr_to_unary_function<_ARG,_RESULT,_CLASS>(o, f); -- cgit v1.2.3