diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-02 17:53:10 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:16 +0100 |
commit | 1a69cbdbeaec501d7b22977320b4d697fbb3dd7a (patch) | |
tree | 935b479b458fff9ba528caf3f81c1dfb372b01fc | |
parent | 90b5fe7673dc086d4474aae6b7f3bbc223fe7ddf (diff) |
Allocator: Implement construct member without a value
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_allocator.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_allocator.hxx b/connectivity/source/drivers/postgresql/pq_allocator.hxx index d03b4241435d..1c95534eeb24 100644 --- a/connectivity/source/drivers/postgresql/pq_allocator.hxx +++ b/connectivity/source/drivers/postgresql/pq_allocator.hxx @@ -175,6 +175,15 @@ public: new ((void*)p)T(value); } + // LEM: GNU libstdc++ vectors expect this one to exist, + // at least if one intends to create vectors by giving + // only a size and no initialising value. + //----------------------------------------- + void construct (pointer p) + { + new ((void*)p)T; + } + //----------------------------------------- void destroy (pointer p) { |