[boost] Re: Revised streambuf library

2003-07-15 Thread Maxim Egorushkin
"Jonathan David Turkanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > You have read/write member functions of your source/sink/filter concepts > > virtual. If one went for efficiency she would stay away from virtual > > functions. With such a design you leave a user no choic

[boost] Re: Re: mpl/loki

2003-07-14 Thread Maxim Egorushkin
"Aleksey Gurtovoy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > IMO we should just stop using 'void_' for internal purposes and give it > up to users :). I think it would be also very nice to 'give up' the mpl::aux::type_wrapper class. It's quite a useful class and I wonder why i

[boost] Re: Revised streambuf library

2003-07-14 Thread Maxim Egorushkin
"Jonathan D. Turkanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have posted a new version of my library, which has been rewritten to > incorporate filtering as a basic construct. > (http://groups.yahoo.com/group/boost/files/streambuf_lib.zip) > > In addition to allowing the

[boost] Re: Boost::thread feature request: thread priority

2003-07-05 Thread Maxim Egorushkin
"Alexander Terekhov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Maxim Egorushkin wrote: > [...] > > Seems like the issue is undefined behaviour when casting away volatile. > > Do I get it right? > > Yes, UB is the issue ("one of

[boost] Re: Boost::thread feature request: thread priority

2003-07-03 Thread Maxim Egorushkin
"Alexander Terekhov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://google.com/groups?selm=3f01e07b%40usenet01.boi.hp.com > (Subject: Re: Does anyone think 'volatile' is a platform-independent > way to make variable access thread safe?) > > Check out this entire thread. Fol

[boost] Re: Boost::thread feature request: thread priority

2003-07-02 Thread Maxim Egorushkin
"Alexander Terekhov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Maxim Egorushkin wrote: > > > > "Alexander Terekhov" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > >

[boost] Re: Boost::thread feature request: thread priority

2003-07-01 Thread Maxim Egorushkin
"Alexander Terekhov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Maxim Egorushkin wrote: > > [... "ala Alexandrescu" volatiles ...] > > http://groups.google.com/groups?threadm=3EE84807.DD00F4D0%40web.de > http://groups.googl

[boost] Re: Re: Re: Boost::thread feature request: thread priority

2003-06-30 Thread Maxim Egorushkin
"William E. Kempf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Now, what you're describing sounds more like this: > > class timer > { > public: >timer(boost::function on_event, int ms, bool repeat=false); > }; > > Which do you really want? Yes, this is what I needed. > >

[boost] Re: Re: Boost::thread feature request: thread priority

2003-06-30 Thread Maxim Egorushkin
"William E. Kempf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Speaking about the timer I ment something like that: > > > > typedef int milliseconds; > > > > class stopwatch > > { > > public: > > stopwatch() > > : started_(::GetTickCount()) > > {} > > > > m

[boost] Re: Boost::thread feature request: thread priority

2003-06-30 Thread Maxim Egorushkin
"William E. Kempf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Priorities are implemented, but still undergoing design changes, in the > thread_dev branch. The timer, if I understand what you want, is trivial > to implement portably with the current Boost.Threads interfaces, bu

[boost] Boost::thread feature request: thread priority

2003-06-29 Thread Maxim Egorushkin
Hello, I've been missing a feature in the thread library: managing a thread priority. And, BTW, the class encapsulating stopwatch functionality with a millisecond precision would be very useful. It would help writing more portable programs (as boost::thread is portable). I'm aware of the fact

[boost] Re: mpl::push_back<> broken?

2003-06-15 Thread Maxim Egorushkin
"David Abrahams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In this version of MPL, vector only supports push_front/pop_front, so > that it's possible to write algorithms which work on both lists and > vectors. The next version will fix that by providing list (O(1) front > oper

[boost] mpl::push_back<> broken?

2003-06-15 Thread Maxim Egorushkin
Hi, I have some difficulty with mpl::push_back<>. It's the reason for compile time errors on Intel C++ 7 and MS VC 7.1. I had to switch to using mpl::insert<> instead. The error on MS VC 7.1 is: mpl_sort.cpp(60) : error C2039: 'type' : is not a member of 'boost::mpl::push_back' Please see the a

[boost] Re: Re: Re: Interest in library generatingstreambufsfromobjects

2003-06-14 Thread Maxim Egorushkin
"Larry Evans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'll soon upload a commented an simplified version of marg_ostreambuf > and maybe a templatized version to parameterize the addedState. I may > rename it too to decorated_ostreambuf or something similar. I think there is

[boost] Re: Re: Interest in library generating streambufs fromobjects

2003-06-14 Thread Maxim Egorushkin
"Larry Evans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I had a brief look and it looks promising. However, I'm wondering > if some of the complexity can be avoided. I had a hard time figuring > out just how to get marg_ostreambuf in files/col_io/col_io.zip to work > with bu

[boost] Re: Interest in library generating streambufs

2003-06-14 Thread Maxim Egorushkin
"Jonathan D. Turkanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yes, this is very elegant. No codecvt's in sight -- just pure adaptors. Also > nice treatment of optional template parameters. It puts my design (and > certain my implementation) to shame. I should have thought mo

[boost] Re: Interest in library generating streambufs from objects

2003-06-12 Thread Maxim Egorushkin
"Jonathan D. Turkanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for your interest. I have posted the library at > http://groups.yahoo.com/group/boost/files/streambuf_lib/. > > The implementation needs to be streamlined, but it works, and the main ideas > are clear enough

[boost] MS VC++ 7.x and BOOST_NO_MEMBER_TEMPLATE_FRIENDS

2003-04-23 Thread Maxim Egorushkin
Doesn't Microsoft VC++ compilers starting from version 7 support member template friends? #if _MSC_VER <= 1310 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS #endif ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

RE: [boost] boost::any feature request

2003-03-26 Thread Maxim Egorushkin
-Original Message- From: Vladimir Prus [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 10:25 AM To: Boost mailing list Subject: Re: [boost] boost::any feature request [] P.S. And, BTW, it would be great to see the complete code that you propose (or a diff to CVS HEAD). Here are

[boost] boost::any feature request

2003-03-23 Thread Maxim Egorushkin
Title: Сообщение I think it would be great to make boost::any's memory allocation strategy for value holder customizable. It would allow to use not only global new operator, but any other special fast allocators like, for example, Loki::SmallObject.   The changes are minor and would not break