From fccef1559e02b001c69a0d35ad960e37dcbfd650 Mon Sep 17 00:00:00 2001 From: "ajwong@chromium.org" Date: Mon, 28 Nov 2011 22:13:54 +0000 Subject: Increase Bind/Callback Arity from 6 -> 7. A few functions need this and the expected compile-speed impact is low. We should be careful when raising this number higher. If you're binding a function that has more parameters than this supports, consider refactoring your API to use a parameter struct or something. Template equation: (n^2 + 26n) / 2 Template growth: 96 -> 116 types. BUG=98542 TEST=try bots Review URL: http://codereview.chromium.org/8728010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111788 0039d316-1c4b-4281-b951-d872f2087c98 --- base/callback.h.pump | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base/callback.h.pump') diff --git a/base/callback.h.pump b/base/callback.h.pump index eee3371..aa43ad5 100644 --- a/base/callback.h.pump +++ b/base/callback.h.pump @@ -5,7 +5,8 @@ $$ $$ http://code.google.com/p/googletest/wiki/PumpManual $$ -$var MAX_ARITY = 6 +$$ See comment for MAX_ARITY in base/bind.h.pump. +$var MAX_ARITY = 7 // Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be -- cgit v1.1