diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-04-19 14:21:05 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-04-22 14:27:32 +0200 |
commit | 21e9146eb9e093d940d95799e365a55f83ac8954 (patch) | |
tree | 8042180df8b2efc90508c79ce99a9d17dc67dc4b | |
parent | b2b8dba6c149407d6657398a874c75629871d21a (diff) |
Refactor such that const keyword always precedes type that it qualifies
-rw-r--r-- | odb/details/meta/class-p.hxx | 2 | ||||
-rw-r--r-- | odb/lazy-pointer-traits.hxx | 8 | ||||
-rw-r--r-- | odb/pointer-traits.hxx | 8 | ||||
-rw-r--r-- | odb/tr1/lazy-pointer-traits.hxx | 8 | ||||
-rw-r--r-- | odb/tr1/pointer-traits.hxx | 8 |
5 files changed, 17 insertions, 17 deletions
diff --git a/odb/details/meta/class-p.hxx b/odb/details/meta/class-p.hxx index 1ce6c0d..fd28b1c 100644 --- a/odb/details/meta/class-p.hxx +++ b/odb/details/meta/class-p.hxx @@ -24,7 +24,7 @@ namespace odb template <typename X> struct class_p { - static bool const r = sizeof (class_p_test<X> (0)) == sizeof (yes); + static const bool r = sizeof (class_p_test<X> (0)) == sizeof (yes); }; } } diff --git a/odb/lazy-pointer-traits.hxx b/odb/lazy-pointer-traits.hxx index 2f99bfa..70a36d0 100644 --- a/odb/lazy-pointer-traits.hxx +++ b/odb/lazy-pointer-traits.hxx @@ -17,8 +17,8 @@ namespace odb class pointer_traits< lazy_ptr<T> > { public: - static pointer_kind const kind = pk_raw; - static bool const lazy = true; + static const pointer_kind kind = pk_raw; + static const bool lazy = true; typedef T element_type; typedef lazy_ptr<element_type> pointer_type; @@ -42,8 +42,8 @@ namespace odb class pointer_traits< lazy_auto_ptr<T> > { public: - static pointer_kind const kind = pk_unique; - static bool const lazy = true; + static const pointer_kind kind = pk_unique; + static const bool lazy = true; typedef T element_type; typedef lazy_auto_ptr<element_type> pointer_type; diff --git a/odb/pointer-traits.hxx b/odb/pointer-traits.hxx index 22fb0bc..8882309 100644 --- a/odb/pointer-traits.hxx +++ b/odb/pointer-traits.hxx @@ -75,8 +75,8 @@ namespace odb class pointer_traits<T*> { public: - static pointer_kind const kind = pk_raw; - static bool const lazy = false; + static const pointer_kind kind = pk_raw; + static const bool lazy = false; typedef T element_type; typedef T* pointer_type; @@ -136,8 +136,8 @@ namespace odb class pointer_traits< std::auto_ptr<T> > { public: - static pointer_kind const kind = pk_unique; - static bool const lazy = false; + static const pointer_kind kind = pk_unique; + static const bool lazy = false; typedef T element_type; typedef std::auto_ptr<element_type> pointer_type; diff --git a/odb/tr1/lazy-pointer-traits.hxx b/odb/tr1/lazy-pointer-traits.hxx index bdbfbfe..4e29abd 100644 --- a/odb/tr1/lazy-pointer-traits.hxx +++ b/odb/tr1/lazy-pointer-traits.hxx @@ -17,8 +17,8 @@ namespace odb class pointer_traits<tr1::lazy_shared_ptr<T> > { public: - static pointer_kind const kind = pk_shared; - static bool const lazy = true; + static const pointer_kind kind = pk_shared; + static const bool lazy = true; typedef T element_type; typedef tr1::lazy_shared_ptr<element_type> pointer_type; @@ -42,8 +42,8 @@ namespace odb class pointer_traits<tr1::lazy_weak_ptr<T> > { public: - static pointer_kind const kind = pk_weak; - static bool const lazy = true; + static const pointer_kind kind = pk_weak; + static const bool lazy = true; typedef T element_type; typedef tr1::lazy_weak_ptr<element_type> pointer_type; diff --git a/odb/tr1/pointer-traits.hxx b/odb/tr1/pointer-traits.hxx index 431685e..80f6419 100644 --- a/odb/tr1/pointer-traits.hxx +++ b/odb/tr1/pointer-traits.hxx @@ -23,8 +23,8 @@ namespace odb class pointer_traits<std::tr1::shared_ptr<T> > { public: - static pointer_kind const kind = pk_shared; - static bool const lazy = false; + static const pointer_kind kind = pk_shared; + static const bool lazy = false; typedef T element_type; typedef std::tr1::shared_ptr<element_type> pointer_type; @@ -69,8 +69,8 @@ namespace odb class pointer_traits<std::tr1::weak_ptr<T> > { public: - static pointer_kind const kind = pk_weak; - static bool const lazy = false; + static const pointer_kind kind = pk_weak; + static const bool lazy = false; typedef T element_type; typedef std::tr1::weak_ptr<element_type> pointer_type; |