![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Also, can you explain what you found in the library that prevented your example code from working in the first place? I.e., precisely what problem this patch solves? |
|
An example of using it.... vector<bool> a(5, false); a[stock_weight] = true; a[stock_price] = true; query << "SELECT * FROM stock WHERE " << q.equal_list(" AND ", &a); |
#2
| |||||
| |||||
|
|
... there is a template member function that has no definition in the rest of the header. Specifically: |
|
Below is Mark's patch, diff-ified, |
|
plus some warning fixes for out-of-order constructor arguments |
|
Index: software/mysql++/examples/custom1.cpp |
|
+ a[stock_weight] = true; + a[stock_price] = true; |
I'm not going to have all that hard work in the new
#3
| ||||
| ||||
|
|
plus some warning fixes for out-of-order constructor arguments This is good to fix, but you should to do it by reordering the initializer list, not by reordering the member declarations. I don't think it's an ABI breakage to make the change as you have, but it is needless. |
|
Index: software/mysql++/examples/custom1.cpp I'd rather that you created a new example, rather than modify custom1.cpp. Disk space is cheap; adding custom5.cpp won't be a problem. |
|
+ a[stock_weight] = true; + a[stock_price] = true; I retract my wish for bare constants here. I didn't realize that custom.h defined these constants for you. It will be good to document this in an example. |
|
Last but not least, can we get a DocBook comment for the new functions? I'm going to request this increasingly, so you all might as well get used to it. I'm not going to have all that hard work in the newdocs go to waste by letting them slip back into irrelevancy. |
#4
| |||
| |||
|
|
... there is a template member function that has no definition in the=20 rest of the header. Specifically: |
|
Below is Mark's patch, diff-ified, |
|
+ a[stock_weight] =3D true; + a[stock_price] =3D true; =20 I retract my wish for bare constants here. I didn't realize that=20 custom.h defined these constants for you. It will be good to document this in an example. |
#5
| ||||
| ||||
|
|
I thought that at first too, but then I noticed there were other instances of the same type of constructor, with variables in different order. |
|
Doxygen isn't really possible in custom.pl, as far as I know. |

|
For DocBook, I assume straight patches to doc/userman/userman.xml are the preferred format? |
|
I haven't finished reading it all, so don't feel qualified to change it yet. :-) |
#6
| |||
| |||
|
|
Below is Mark's patch, diff-ified, Chris, Thanks for doing this. To all, sorry I have not presented things in the form that is expected. I am new to this list and still learning how you would like to see patches presented. I will catch on soon. Sorry. |
#7
| |||
| |||
|
|
You probably know this by now, but "diff -ruN mysql++-olddir mysql++-newdir" |
![]() |
| Thread Tools | |
| Display Modes | |
| |