Search the web
Sign In
New User? Sign Up
DatabaseTemplateLibrary · The Database Template Library
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1539 - 1568 of 2479   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1539
I've dug through the code and I can't seem to answer this so may someone else can clarify it for me. I have a DynamicDBView<> that is allocated as follows...
krakajaxx
Offline Send Email
May 1, 2005
7:17 pm
1540
I am not 100% certain that I understand why this is happening, but I am certain it causes my application to crash so I'm still digging. I have a DynamicDBView...
krakajaxx
Offline Send Email
May 1, 2005
9:16 pm
1541
As you can tell by the # of posts I've had its been a busy weekend for me. I have a query which should work and does when I build the query myself but fails...
krakajaxx
Offline Send Email
May 1, 2005
11:27 pm
1542
Looks like you've been really busy. I dont use the DynamicDB stuff and I don't tend to use sql_iterator, so I can't really help you here. However, if you can...
Paul
elegant_dice
Offline Send Email
May 1, 2005
11:56 pm
1543
... From your example I'm not sure why the BPA is failing. What error message does it give? ... This one I think I can tell you. If you use std::string DTL...
Corwin Joy
corwinjoy
Offline Send Email
May 2, 2005
6:56 am
1544
Hi, I've been having some problems with a boolean field. I'm not sure where the problem is or where the fault lies, but basically every now and then I find...
Paul
elegant_dice
Offline Send Email
May 4, 2005
4:18 am
1545
Correction, I confirmed in the mysql logs that the DTL did set the value to -128. Not sure why? Is this standard?...
Paul
elegant_dice
Offline Send Email
May 4, 2005
4:20 am
1546
Hi again, I have problems with a pretty basic test (now added to cvs in test_iterators.h) In before = begin; ++begin; assert(before != begin); this fails....
Paul
elegant_dice
Offline Send Email
May 9, 2005
10:40 am
1547
Correction, I've narrowed the error down to something slightly different: template <class In> void test_basic_increment(In begin, In end) { assert(begin !=...
Paul
elegant_dice
Offline Send Email
May 9, 2005
10:53 am
1548
Interesting. What happens if you compare begin and end the other way round: assert(end != begin !); There was a problem with incrementing an iterator without...
Richard Jennings
richard06_2005
Offline Send Email
May 9, 2005
11:13 am
1549
... same thing, I assume, because its not the order that is interesting, but the fact that it works if its the first time its compared. ... what fix? I'm...
Paul
elegant_dice
Offline Send Email
May 9, 2005
12:39 pm
1550
I'm not sure what you are expecting to see here. This behaviour looks correct to me. ... OK. The iterator has now been opened and the resulting rowset is not ...
Corwin Joy
corwinjoy
Offline Send Email
May 9, 2005
9:05 pm
1551
... Actually, != should return TRUE. (before==begin) should return false. However, if you run the test, you'll see that at the last point, before==begin -...
Paul
elegant_dice
Offline Send Email
May 10, 2005
12:10 am
1552
OK. I see your point, but I am still OK with the current logic. When we copy a select_iterator what happens is this: 1. We copy the value (if any) that is...
Corwin Joy
corwinjoy
Offline Send Email
May 10, 2005
3:06 am
1553
Ok, I can see your point too. However, the problem is that many STL algorithms will silently fail to work correctly. I'm not sure what the solution is, we...
Paul
elegant_dice
Offline Send Email
May 10, 2005
3:55 am
1554
... Well, they shouldn't - as long as they require only a forward iterator and use it only in a one pass fashion as they should. We do follow the...
Corwin Joy
corwinjoy
Offline Send Email
May 10, 2005
6:40 am
1555
This discussion makes me wonder if std::distance() works with select iterators, does anyone know? The reason I ask is that for input forward iterators...
Richard Jennings
richard06_2005
Offline Send Email
May 10, 2005
8:52 am
1556
In short: As long as you want the distance from begin to end, you are ok. Copying an end() iterator is ok because theres a flag that is perfectly copied....
Paul
elegant_dice
Offline Send Email
May 10, 2005
9:05 am
1557
... here's what I was trying to do: template <class In, class Out, class Compare> Out copy_duplicates(In begin, In end, Out out, Compare compare) { while...
Paul
elegant_dice
Offline Send Email
May 10, 2005
9:25 am
1558
I don't see an easy solution for comparing select iterators that DTL can implement. Though it does occur to me that it could off the option of the user...
Richard Jennings
richard06_2005
Offline Send Email
May 10, 2005
9:59 am
1559
The problem is not comparing select_iterators, Corwin has already got that down no worries. The problem is what do you copy when you copy iterators? From what...
Paul
elegant_dice
Offline Send Email
May 10, 2005
10:55 am
1560
I think there are a couple of threads here. Firstly if comparing iterators works just fine then I would expect std::distance(begin, any) to work just fine, but...
Richard Jennings
richard06_2005
Offline Send Email
May 10, 2005
11:58 am
1561
... not really, because: template <class In> int distance( In begin, In end ) { int i = 0; for ( ; begin != end; ++begin, ++i ); return i; } If you do this: ...
Paul
elegant_dice
Offline Send Email
May 10, 2005
1:37 pm
1562
... I think you are expecting select_iterator to do something here that it does not provide a guarantee for. As we say in the docs, a select iterator is just...
Corwin Joy
corwinjoy
Offline Send Email
May 10, 2005
4:03 pm
1563
Paul, I had a look at your tests in dtl_posix_time.cpp but I could not get your classes to compile. I am using boost 1_30_0 , VC 6.0 and STLport to be a...
Corwin Joy
corwinjoy
Offline Send Email
May 11, 2005
1:30 am
1564
none.hpp moved to boost/none.hpp in version 1.32.0 i think. Might want to upgrade? Otherwise, give me 30 mins and i'll find where none.hpp was in 1.30.0 and...
Paul
elegant_dice
Offline Send Email
May 11, 2005
1:49 am
1565
Ok, thanks for your patience. I use g++ 3.3 or 3.4, which was released after boost-1.30.0 (It compiles correctly, with warnings). So I installed gcc 3.0.4...
Paul
elegant_dice
Offline Send Email
May 11, 2005
3:19 am
1566
Hi all, I have been using DTL for some time, and it' a great library. Now I have started to rewrite some code, and I ran into the following problem. I'm using...
Stefan Kluehspies
Stefan_Klueh...
Offline Send Email
May 11, 2005
10:57 am
1567
... <snip> ... aah of course... this makes sense, i stand corrected. ... so the only solution is to either drag all the rows down at the start, or drag them...
Paul
elegant_dice
Offline Send Email
May 11, 2005
1:06 pm
1568
Hi Stefan, This is an nuisance with IndexedDBView that Mike and I need to make clearer in the docs. If you do a find versus an alternate index, then you need...
Corwin Joy
corwinjoy
Offline Send Email
May 11, 2005
5:13 pm
Messages 1539 - 1568 of 2479   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help