[boost] Re: Re: Proposed smart_handle library

2003-07-22 Thread Eugene Lazutkin
Inline. Gregory Colvin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm generally less afraid of automatic conversions than many others, and dropped them from auto_ptr, and later from shared_ptr, only under duress. I like them for wrapper classes because they make it possible to

[boost] Re: BOOST_EXPLICIT_TEMPLATE_TYPE

2003-07-22 Thread Eric Friedman
David Abrahams wrote: Hi, BOOST_EXPLICIT_TEMPLATE_TYPE is great! However: [snip] // specialization template int fvoid( /*what goes here?*/ ) { } we have no mechanism for handling these. Any ideas? Wouldn't BOOST_EXPLICIT_TEMPLATE_TYPE(void) work? Eric

Re: [boost] Re: Formal Review Request: circular_buffer

2003-07-22 Thread Jan Gaspar
It is not generated file, you can edit it directly. Jan Nigel Stewart wrote: would you like some proof-reading for the documentation? I would very appreciate this! Is the file circular_buffer/doc/circular_buffer.html generated from some other file, or should I simply hand-edit it?

[boost] Re: [boost::thread] locks, exceptions and assertions

2003-07-22 Thread Russell Hind
David Abrahams wrote: That sounds like what I remember Bill telling me. but scoped locks don't tend to be shared. The mutex is, but the actual lock isn't intended to be. Certainly not accross threads, so there shouldn't be race conditions in scoped_lock. Russell

RE: [boost] Slight revision to more-I/O

2003-07-22 Thread Paul A. Bristow
| -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] Behalf Of Daryle Walker | Sent: Saturday, July 19, 2003 8:38 AM | To: Boost | Subject: [boost] Slight revision to more-I/O | | In the latest post-review version, I fully disabled copying for the | array-based

Re: [boost] Minor bug in indirect_iterator.hpp

2003-07-22 Thread Thomas Witt
Joe Gottman wrote: There is a small problem with the current version of indirect_iterator.hpp. It forward declares struct indirect_iterator, but declares class indirect_iterator. MSVC 6.0 emits a warning because of this. Thanks! Fixed. Thomas -- Dipl.-Ing. Thomas Witt Institut fuer

[boost] Re: [boost::thread] locks, exceptions and assertions

2003-07-22 Thread Russell Hind
Peter Dimov wrote: This looks like a motivating example for scoped_unlock. :-) That would definitely be useful. In places I have made my own scoped_unlock (well, just called unlocker) but I haven't re-used it everywhere yet!. Cheers Russell ___

[boost] Interest in selected_realprecision, range?

2003-07-22 Thread Daniel Spangenberg
Hello Boosters! Some time ago, I developed three class templates emulating some Fortran90 features, known as SELECTED_REAL_KIND and SELECTED_INT_KIND. For those who don't know about Fortran90 kind values: In C++ they correspond to a type-value mapping. In short the template class declarations

[boost] Another mailing list (was: Re: uBlas and linear algebraquestions)

2003-07-22 Thread Daryle Walker
On Sunday, July 20, 2003, at 8:59 PM, Kirill Lapshin wrote: David Abrahams wrote: [SNIP] Well, that's disturbing! http://tinyurl.com/hinz plainly says: Mailing lists - uBLAS has no dedicated mailing list. Feel free to use the mailing lists of Boost . What's the

[boost] Quick thought on circular_buffer

2003-07-22 Thread Daryle Walker
Could circular_buffer be done like std::stack and std::queue, as an adapter for a regular container class? You may have to have a custom iterator, though. Daryle ___ Unsubscribe other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Re: [boost] Quick thought on circular_buffer

2003-07-22 Thread Jan Gaspar
No, because of iterator invalidation. Jan Daryle Walker wrote: Could circular_buffer be done like std::stack and std::queue, as an adapter for a regular container class? You may have to have a custom iterator, though. Daryle ___ Unsubscribe

[boost] Boost.Build V2, Milestone 6 released

2003-07-22 Thread Vladimir Prus
I'm pleased to announce that the next milestone release of Boost.Build V2 is available at http://prdownloads.sourceforge.net/boost/boost-build-2.0-m6.tar.bz2 http://prdownloads.sourceforge.net/boost/boost-build-2.0-m6.zip See also http://boost.sourceforge.net/boost-build2/ for

[boost] Small bug in unit_test_framework XML output?

2003-07-22 Thread Caleb Epstein
I'm just starting to use the unit test framework, and have encountered a small bug (I think) in the XML output. I am just including: #include boost/test/auto_unit_test.hpp #include boost/test/included/unit_test_framework.hpp And have implemented my test cases

[boost] Re: [boost::thread] locks, exceptions and assertions

2003-07-22 Thread Alexander Terekhov
Peter Dimov wrote: [...] It's not that simple. Whether something is a programming error is determined by the library's specification, not vice versa. In other words, under the current specification, re-locking a locked lock :-) is not an error, as it is well defined. It is not a just an

[boost] circular_buffer: minor feature request

2003-07-22 Thread Pavel Vozenilek
Would it be possible to add helper function 'flatten()' into circular_buffer? After invocation, user would be sure of: buff[0] buff[1] ... buff[n] In other words, user will be able to treat circular_buffer content as continuous array of values in this moment. It is not earth shaking

[boost] Re: Proposed smart_handle library

2003-07-22 Thread David Abrahams
Gregory Colvin [EMAIL PROTECTED] writes: I'm generally less afraid of automatic conversions than many others, and dropped them from auto_ptr, and later from shared_ptr, only under duress. I like them for wrapper classes because they make it possible to drop the wrappers directly into

[boost] Non-standard feature proposed in help text of operatorslibrary??

2003-07-22 Thread Daniel Spangenberg
Hello Boosters, after some experiences I got during a the developement of a BitMaskOps class template (as an extension of operators for enums), which can be found on http://groups.google.de/groups?q=BitMaskOpshl=delr=ie=UTF-8selm=3F165079.A0CE8BAE%40bdal.dernum=1 I assume now, that the section

[boost] Re: Changes with new release

2003-07-22 Thread David Abrahams
Edward Diener [EMAIL PROTECTED] writes: David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: Actually I am quite serious with my preceding paragraph. I have never quite understand why so many good, and often brilliant programmers, take it so hard when others suggest that they

[boost] Re: Another mailing list

2003-07-22 Thread David Abrahams
Daryle Walker [EMAIL PROTECTED] writes: On Sunday, July 20, 2003, at 8:59 PM, Kirill Lapshin wrote: David Abrahams wrote: [SNIP] Well, that's disturbing! http://tinyurl.com/hinz plainly says: Mailing lists - uBLAS has no dedicated mailing list. Feel free to use

[boost] Re: [boost::thread] locks, exceptions and assertions

2003-07-22 Thread David Abrahams
Daniel Spangenberg [EMAIL PROTECTED] writes: David Abrahams schrieb: Well, that's not my philosophy FWIW. Mine is: if the condition is a programmer error, use assert otherwise, use a well-documented exception Occasionally, due to a no throw requirement, you have to choose to make

[boost] Fixed-Point Decimal Formal Review

2003-07-22 Thread Mike Cowlishaw
First, apologies for this late entry into this discussion. Bill's fixdec library has some very nice features (the treatment of rounding modes is especially interesting), but I am confused as to why anyone would be proposing a fixed-point decimal library today. The trend in decimal arithmetic

[boost] Re: Non-standard feature proposed in help text of operators library??

2003-07-22 Thread Daniel Frey
Daniel Spangenberg wrote: (CRTP). Provided, that this is true, I assume, that the proposed workaround for compilers with expensive multiple inheritance implementations should not work on compliant compilers, because of a violation of 14.6.5/p. 2: As with nontemplate classes, the names of namespace

[boost] Dependency Issues

2003-07-22 Thread Sujay Ghosh
Hello Users , I am new to Boost , and I would like to use it for my upcoming project. I need to know whether Boost libraries is o/s dependent . How do I acheive that , is there any preprocessor that does the neccessary, like # ifdef _UNIX_ // do the necessary for the OS #

[boost] Re: Slight revision to more-I/O

2003-07-22 Thread Ed Brey
Daryle Walker wrote: On Saturday, July 19, 2003, at 3:30 AM, Gennaro Prota wrote: --- Daryle Walker [EMAIL PROTECTED] wrote: Actually, I don't think the Review Manager ever gave a final answer. Well, he and everyone else can take a quick look. It seems that some people around here are

[boost] Re: Changes with new release

2003-07-22 Thread Edward Diener
David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: I am always surprised when programmers, such as yourself in this instance, react so vehemently to those who suggest that documentation can be better in any respect. I

[boost] Re: Non-standard feature proposed in help text of operators library??

2003-07-22 Thread Daniel Spangenberg
Daniel Frey schrieb: I guess you missed the fact that XT in the operators library defines operators which take T as an argument, not XT. Whether XT is associated with T is therefore not important here, ADL matches the operator arguments, not the class which declared the operator. Regards,

[boost] Re: Fixed-Point Decimal Formal Review

2003-07-22 Thread Bill Seymour
Despite the several yes votes (thanks), I think I have to agree with Ilya and vote no for my own library. Of the problems that have been mentioned, two, IMO, are show-stoppers: the problem with the scale being immutable resulting in inequality after assignment (if the scale isn't part of the

Re: [boost] Re: [boost::thread] locks, exceptions and assertions

2003-07-22 Thread Peter Dimov
Alexander Terekhov wrote: Peter Dimov wrote: [...] It's not that simple. Whether something is a programming error is determined by the library's specification, not vice versa. In other words, under the current specification, re-locking a locked lock :-) is not an error, as it is well

Re: [boost] Re: [boost::thread] locks, exceptions and assertions

2003-07-22 Thread Peter Dimov
Daniel Spangenberg wrote: 2) For what kind of errors should be BOOST_ASSERT for? For situations where the specification says undefined behavior but the implementation can detect the problem. Throwing an exception is sometimes an acceptable form of undefined behavior. Not often, of course. But

[boost] Re: Non-standard feature proposed in help text of operators library??

2003-07-22 Thread Daniel Frey
Daniel Spangenberg wrote: No, I absolutely do understand, that XT in the operators library defines operators which take T as an argument. I hope, that my explanation meant that (my english is bad, I know). But I think, that the standard does forbid the visibiliy of the operators injected by

Re: [boost] Re: Proposed smart_handle library

2003-07-22 Thread Gregory Colvin
On Tuesday, Jul 22, 2003, at 05:56 America/Denver, David Abrahams wrote: Gregory Colvin [EMAIL PROTECTED] writes: I'm generally less afraid of automatic conversions than many others, and dropped them from auto_ptr, and later from shared_ptr, only under duress. I like them for wrapper classes

[boost] Re: Proposed smart_handle library

2003-07-22 Thread David Abrahams
Gregory Colvin [EMAIL PROTECTED] writes: Some conversions are worse than others. For example, an implicit conversion from a raw pointer to an owning handle/smart-pointer is far more dangerous than the opposite conversion. Agreed. It is the latter conversions I like. That said, I'm pretty

[boost] Re: Changes with new release

2003-07-22 Thread David Abrahams
Edward Diener [EMAIL PROTECTED] writes: David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: I am always surprised when programmers, such as yourself in this instance, react so vehemently to those who suggest that

[boost] Re: Non-standard feature proposed in help text of operators library??

2003-07-22 Thread David Abrahams
Daniel Frey [EMAIL PROTECTED] writes: Daniel Spangenberg wrote: No, I absolutely do understand, that XT in the operators library defines operators which take T as an argument. I hope, that my explanation meant that (my english is bad, I know). But I think, that the standard does forbid the

Re: [boost] Dependency Issues

2003-07-22 Thread David A. Ferguson
From: Sujay Ghosh [EMAIL PROTECTED] I need to know whether Boost libraries is o/s dependent . How do I acheive that , is there any preprocessor that does the neccessary, like You can achieve it simply by using it. Configuration is transparent and automatic. Boost appears to configure itself

[boost] Re: Formal Review Request: circular_buffer

2003-07-22 Thread Nigel Stewart
Jan, I have closely proof-read the HTML document and intend to respond with a new draft shortly. There is one point I would like to raise for discussion: Inserting at the beginning or close to the beginning of the circular_buffer is another trap. boost::circular_bufferint cb(5, 1);

[boost] Re: Non-standard feature proposed in help text of operators library??

2003-07-22 Thread Daniel Frey
David Abrahams wrote: Daniel Frey [EMAIL PROTECTED] writes: They needn't be visible for myclass. They only need to be visible in the namespace where this happened. See 3.4.2/2: If T is a class type, its associated classes are the class itself and its direct and indirect base classes. Its

Re: [boost] Re: [boost::thread] locks, exceptions and assertions

2003-07-22 Thread Peter Dimov
Alexander Terekhov wrote: Peter Dimov wrote: We are discussing the scoped_lock l1(m); l1.lock(); case. Since l1 is required to know whether it's been locked or not (it has a public locked() query) it can easily check. What for? http://www.terekhov.de/DESIGN-futex-CV.cpp (see

[boost] Re: Changes with new release

2003-07-22 Thread Edward Diener
David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: David Abrahams wrote: Edward Diener [EMAIL PROTECTED] writes: I am always surprised when programmers, such as yourself in this instance, react so vehemently to

Re: [boost] circular_buffer: minor feature request

2003-07-22 Thread Jan Gaspar
Ok, it would be possible. Jan Pavel Vozenilek wrote: Would it be possible to add helper function 'flatten()' into circular_buffer? After invocation, user would be sure of: buff[0] buff[1] ... buff[n] In other words, user will be able to treat circular_buffer content as continuous

[boost] [Boost-bugs] [ boost-Support Requests-775764 ] CompileSmart_ptrlibrary on Forte (Sun One)

2003-07-22 Thread SourceForge.net
Support Requests item #775764, was opened at 2003-07-22 11:00 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=207586aid=775764group_id=7586 Category: smart_ptr Group: None Status: Open

Re: [boost] Re: Re: Formal Review Request: circular_buffer [long]

2003-07-22 Thread Jan Gaspar
Pavel Vozenilek wrote: Hello Jan, Few more comments + answers. 1. Documentation: can circular_buffer be used as container for stack/queue/priority_queue? Yes, it can be. But I think, it is not necessary to mention it in the documentation explicitly. Rather it is more important to

Re: [boost] Re: Formal Review Request: circular_buffer

2003-07-22 Thread Jan Gaspar
Hi Nigel, It cannot be done as you propose. Please check the archive. It can be done like this: cb.rinsert(cb.begin(), 2); // rinsert cb.push_front(2); // this is equivalent It will be documented and I think not everything can be driven by the principle of least surprise. Jan Nigel

Re: [boost] Re: current_function.hpp extension

2003-07-22 Thread John Torjo
John Torjo wrote: Yes, I remain unconvinced ;-) This is because some compilers do not provide such a FUNCTION facility. VC6 is one of them. What should I do for it? It sounds like you are asking for the wrong macro! You are trying to support a compiler that is outdated and long since

[boost] Re: Non-standard feature proposed in help text of operators library??

2003-07-22 Thread David Abrahams
Daniel Frey [EMAIL PROTECTED] writes: IIUC, the 'T' that the standard mentions is the 'myclass' in Daniel Spangenberg's example. You're right. The operators provided by XT should be found in T's namespace Ah, as I understand it. They're namespace-scope friend functions in the namespace of

[boost] Re: Changes with new release

2003-07-22 Thread David Abrahams
Edward Diener [EMAIL PROTECTED] writes: I think: I have never quite understand why so many good, and often brilliant programmers, take it so hard when others suggest that they document what they do in easily understandable sentences. There must be something wrong in the

Re: [boost] Re: Changes with new release

2003-07-22 Thread Peter Dimov
I have never quite understand why so many good, and often brilliant programmers, take it so hard when others suggest that they document what they do in easily understandable sentences. There must be something wrong in the educational systems of the countries from which

[boost] Re: Re: Re: Formal Review Request: circular_buffer [long]

2003-07-22 Thread Pavel Vozenilek
Hello Jano, Jan Gaspar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 3. This fragment fails: struct Test {} circular_bufferTest a(2); a.push_back(Test()); a.push_back(a[0]); I don't understand this. IMHO there will be 2 copies of Test(). Nothing should be

Re: [boost] Re: uBlas and linear algebra questions

2003-07-22 Thread Joerg Walter
- Original Message - From: Kirill Lapshin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 21, 2003 2:59 AM Subject: [boost] Re: uBlas and linear algebra questions David Abrahams wrote: Ah, I understand. It seems as though the choices for linear algebra in C++ haven't

[boost] Re: Changes with new release

2003-07-22 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: I have never quite understand why so many good, and often brilliant programmers, take it so hard when others suggest that they document what they do in easily understandable sentences. There must be something wrong in the educational

Re: [boost] Re: uBlas and linear algebra questions

2003-07-22 Thread Joerg Walter
- Original Message - From: David Abrahams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 21, 2003 2:25 AM Subject: [boost] Re: uBlas and linear algebra questions Kirill Lapshin [EMAIL PROTECTED] writes: David Abrahams wrote: I'm trying to get a grip on what facilities

[boost] Re: Fixed-Point Decimal Formal Review

2003-07-22 Thread Ilya Buchkin
Bill Seymour [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Despite the several yes votes (thanks), I think I have to agree with Ilya and vote no for my own library. Of the problems that have been mentioned, two, IMO, are show-stoppers: the problem with the scale being immutable

[boost] Re: circular_buffer: minor feature request

2003-07-22 Thread Nigel Stewart
In other words, user will be able to treat circular_buffer content as continuous array of values in this moment. Is that a semantic that could be guaranteed by the copy constructor and/or assignment operator? In that case, no need to change the interface. It's going to

[boost] Re: Formal Review Request: circular_buffer

2003-07-22 Thread Nigel Stewart
Hello Jan, Oops, I stand corrected. I had not understood the convention properly! In a nutshell: 1. The capacity is preserved unless explicity adjusted via set_capacity, or implicitly changed by resize. 2. insert may cause front elements to be overwritten 3. rinsert may cause back

Re: [boost] Re: uBlas and linear algebra questions

2003-07-22 Thread Joerg Walter
- Original Message - From: David Abrahams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:51 AM Subject: [boost] Re: uBlas and linear algebra questions Kirill Lapshin [EMAIL PROTECTED] writes: David Abrahams wrote: Ah, I understand. It seems as though the

[boost] Re: Preliminary submission: FC++

2003-07-22 Thread David Abrahams
Brian McNamara [EMAIL PROTECTED] writes: I have posted the first boostified version of FC++ to the YahooGroups files section; it is called fcpp. http://groups.yahoo.com/group/boost/files/ -- Background -- FC++ is a library for functional programming. In FC++ we program

[boost] Re: lexical_cast issue

2003-07-22 Thread tslettebo
From: Drazen DOTLIC (Sorry for the late reply - I've recently started a new job, and moved, so I've been a little busy) I've encountered something I can not claim to be a problem, but would like to consult with you (or at least author of lexical_cast). We are using VC7.1, boost from CVS few

Re: [boost] Re: lexical_cast issue

2003-07-22 Thread tslettebo
From: Rodolfo Lima I had some problems with lexical_cast and not using wchar_t as a built-in type. For instance... std::stringstream ss; ss boost::lexical_castunsigned short(23); lexical_cast would return a wstring, and a compile failure, because internally there is a the template