Jean-Marc LASGOUTTES wrote:
> Peter Kümmel <syntheti...@gmx.net> writes:
> 
>> Because we get trouble with bind and shared_ptr coming with boost and
>> msvc10 I've introduced support/bind.h and support/shared_ptr.h where
>> I've moved both functions into the lyx scope and where we can switch
>> between the usage of boost and tr1.
>> Currently I only use for msvc10 the tr1, but we could also enable it
>> for GCC.
>>
>> Therefore please include "support/bind.h" instead of "boost/bind.hpp" and
>> "support/shared_ptr.h" instead of "boost/shared_ptr.h".
> 
> What is the reason why we use the tr1 version with msvc10?

We often have 'using namespace std' in our code and msvc10 makes bind
visible as std::bind, this generates many conflicts. And why should
we use third party code when the compiler comes with it's own
implementation?

Using tr1 also prevents the including of myriads of boost headers, thus
speeds up compiling.

And I still hope we could sometime completely remove the boost dependency,
because we don't use it at many places, and most functionality is already
there (stl or Qt).

Peter

(Good to see ml working again, many thanks Máté)

Reply via email to