Re: [Boost-bugs] [Boost C++ Libraries] #6186: lexical_cast on vs2005 with wchar_t-

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6186: lexical_cast on vs2005 with wchar_t-
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-17 15:23:35


#6186: lexical_cast on vs2005 with wchar_t-
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: apolukhin
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.48.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+--------------------------------------------

Comment (by cheng.yang <luckyangcheng@…>):

 And, if I want to submit something to boost, can anyone let me know what
 shall I do?

 For example, I write another set of bind, I call it bind2f. Current bind
 in boost will generate an object in boost::_mfi::mf2<R, type1, type2, ...>
 type, and it can be assigned to boost::function<R(t1,t2)>.

 Some cases it will be a great difficult in the programming.
 For example:
 Class A
 {
   void do_test(function<bool()> cmd);
   void do_test(function<bool(int)>cmd);
 }
 A a;
 a.do_test(bind(...))//compile error, don't know use what's the version for
 do_test.

 So if we want to call a.do_test, we must write like this:

 function<bool()>cmd = bind(.....);
 a.do_test(cmd);

 And one day the function is refactored as function<int()>, all defines
 should also been changed.
 But indeed, the type after bind can be deduced to a function type.

 The bind2f is prepared for this.
 bind2f will return the right function after the bind, it can support
 normal function, member function, even for irregular place holder order,
 it works right.(such as bind(&test,this,_9,_2). The missed parameters is
 set as int by default.

 for example, for the function: void test_bind2f(char, string);
 bind2f(&test_bind2f,_4,_1) will be deduced as
 function<void(string,int,int,char)>.

 Beside the bind2f, I have some other products that may fit for boost, how
 can I let you know about it?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6186#comment:19>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC