From 9491f2eb47707e600d8bab5986672b3a33d55259 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 15 Jun 2016 14:53:07 +0100 Subject: [PATCH] Move sequence_bt and string_bt into helpers. They are useful in the Redis backend and in helpers itself. People wanting to use pq alone from this project will have to cope and search for all the needed files. --- include/{pq/implem => helpers}/sequence_bt.hpp | 4 ++-- include/{pq/implem => helpers}/string_bt.hpp | 6 +++--- include/pq/implem/pq_type_helpers.hpp | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) rename include/{pq/implem => helpers}/sequence_bt.hpp (97%) rename include/{pq/implem => helpers}/string_bt.hpp (97%) diff --git a/include/pq/implem/sequence_bt.hpp b/include/helpers/sequence_bt.hpp similarity index 97% rename from include/pq/implem/sequence_bt.hpp rename to include/helpers/sequence_bt.hpp index 80bb7df..b79e126 100644 --- a/include/pq/implem/sequence_bt.hpp +++ b/include/helpers/sequence_bt.hpp @@ -20,7 +20,7 @@ #include -namespace pq { +namespace dinhelp { namespace bt { template struct index_seq { @@ -43,6 +43,6 @@ namespace pq { template using index_range = typename implem::range_builder::type; } //namespace bt -} //namespace pq +} //namespace dinhelp #endif diff --git a/include/pq/implem/string_bt.hpp b/include/helpers/string_bt.hpp similarity index 97% rename from include/pq/implem/string_bt.hpp rename to include/helpers/string_bt.hpp index dc1dbde..820ad81 100644 --- a/include/pq/implem/string_bt.hpp +++ b/include/helpers/string_bt.hpp @@ -18,12 +18,12 @@ #ifndef id170B0E6C34D14EBA9B92A35977BDBFB3 #define id170B0E6C34D14EBA9B92A35977BDBFB3 -#include "pq/implem/sequence_bt.hpp" +#include "sequence_bt.hpp" #include #include #include -namespace pq { +namespace dinhelp { namespace bt { template class string; @@ -107,6 +107,6 @@ namespace pq { return string(parData); } } //namespace bt -} //namespace pq +} //namespace dinhelp #endif diff --git a/include/pq/implem/pq_type_helpers.hpp b/include/pq/implem/pq_type_helpers.hpp index 92023be..2ebf303 100644 --- a/include/pq/implem/pq_type_helpers.hpp +++ b/include/pq/implem/pq_type_helpers.hpp @@ -18,7 +18,7 @@ #ifndef idEC73C3E4D64D44ABA0DB7D41FA8A7EB7 #define idEC73C3E4D64D44ABA0DB7D41FA8A7EB7 -#include "pq/implem/string_bt.hpp" +#include "helpers/string_bt.hpp" #include #include #include @@ -30,6 +30,8 @@ struct pg_param; typedef pg_param PGparam; namespace pq { + namespace bt = dinhelp::bt; + class Connection; namespace implem {