Same example but at compile time. Of course the right solution is to have boost::bind have some sort of compile-time value. -----Original Message----- From: boost-users-bounces@lists.boost.org on behalf of Sohail Somani Sent: Tue 1/16/2007 3:23 PM To: boost-users@lists.boost.org; boost-users@lists.boost.org Subject: Re: [Boost-users] [Bind] arity of arbitrary object Hi, I've attached up something that seems to kind of maybe work in g++. Don't have access to any other compiler at the moment, so I can't tell you if it will work or if it is even conforming to standard. The solution only helps at runtime currently as I'm not exactly sure how to decompose the bind_t object at compile time (NOT a template guru). It uses boost bind internals as of 1.33.1. I'd appreciate if someone could warp this to somehow get the right information at compile time. Hope it helps! Sohail