dbTalk Databases Forums  

bug fix for MySQL++-2.0.7

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss bug fix for MySQL++-2.0.7 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Forrest
 
Posts: n/a

Default bug fix for MySQL++-2.0.7 - 01-07-2006 , 10:00 AM






Hi,

I think I have fixed a small bug in MySQL++-2.0.7

Result::iterator is not a model of the RandomAccessIterator concept.
This makes it unusable with the boost::iterator library amongst other
things.

I believe the problem is due to a missing template argument in line 119
of resiter.h

class subscript_iterator : public std::iterator<ReturnType, SizeType>

should probably read

class subscript_iterator : public
std::iterator<std::random_access_iterator_tag,Retu rnType, SizeType>

With this patch applied, the iterator passes the boost concept check for
RandomAccessIteratorConcept.

I don't know what the procedure is for submitting patches to this
project. But Warren Young indicated I should send it to this list.

Richard Forrest



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: bug fix for MySQL++-2.0.7 - 10-27-2007 , 04:00 AM






Richard Forrest wrote:
Quote:
class subscript_iterator : public std::iterator<ReturnType, SizeType

should probably read

class subscript_iterator : public
std::iterator<std::random_access_iterator_tag,Retu rnType, SizeType

After nearly 2 years, this patch is finally applied. Whew! Binary
compatibility can be a pain...

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.