mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-07 13:29:49 +00:00
Now there is a cpp for pq_type_helpers.hpp so move code there.
This commit is contained in:
parent
2655ea5f5c
commit
2593d46ed7
3 changed files with 38 additions and 36 deletions
|
@ -62,6 +62,10 @@ namespace pq {
|
|||
template <>
|
||||
struct get_pqlib_c_type_struct<std::chrono::system_clock::time_point> {
|
||||
//Hack to make some sort of "static pimpl"
|
||||
//I don't want to include libpqtypes here since this is a public
|
||||
//header, so the following should mimic the real struct in that they
|
||||
//should have the same size and alignment. This is asserted in the
|
||||
//cpp.
|
||||
struct StorageStruct { uint64_t epoch; int a[14]; char tzabbr[16]; };
|
||||
static constexpr std::size_t DATA_SIZE = sizeof(StorageStruct);
|
||||
using storage = std::aligned_storage<DATA_SIZE, alignof(uint64_t)>::type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue