archrelease: copy trunk to community-any
[ArchLinux/community.git] / mysql++ / trunk / mysql++-fix-size_t.patch
blob908141d5d48be349643a07b176066f0823b363dd
1 diff -Naur mysql++-3.1.0.old//lib/refcounted.h mysql++-3.1.0/lib/refcounted.h
2 --- mysql++-3.1.0.old//lib/refcounted.h 2010-06-03 19:59:23.000000000 +0200
3 +++ mysql++-3.1.0/lib/refcounted.h 2011-04-23 12:35:39.943366970 +0200
4 @@ -101,7 +101,7 @@
6 std::auto_ptr<T> exception_guard(counted_);
7 if (counted_) {
8 - refs_ = new size_t(1);
9 + refs_ = new std::size_t(1);
11 exception_guard.release(); // previous new didn't throw
13 @@ -255,7 +255,7 @@
14 /// We can't keep this as a plain integer because this object
15 /// allows itself to be copied. All copies need to share this
16 /// reference count, not just the pointer to the counted object.
17 - size_t* refs_;
18 + std::size_t* refs_;