]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: fix clang compilation 12565/head
authorMykola Golub <mgolub@mirantis.com>
Mon, 19 Dec 2016 06:44:22 +0000 (08:44 +0200)
committerMykola Golub <mgolub@mirantis.com>
Mon, 19 Dec 2016 06:44:22 +0000 (08:44 +0200)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/common/config.cc

index 7f39ed0c8b78e5fc60948e2be55a09dcc3444b3f..45b00fca6881df8f9125e2e6e434a08ac1b5a1a3 100644 (file)
@@ -107,13 +107,13 @@ struct md_config_t::option_##name##_t {     \
 namespace {
 
 template <typename T>
-typename std::enable_if<!std::is_constructible<T>::value,
+typename std::enable_if<!std::is_destructible<T>::value,
                         md_config_t::validator_t>::type create_validator() {
   return md_config_t::validator_t();
 }
 
 template <typename T>
-typename std::enable_if<std::is_constructible<T>::value,
+typename std::enable_if<std::is_destructible<T>::value,
                         md_config_t::validator_t>::type create_validator() {
   // if T is defined (and not just forward declared), it implies
   // that a validator function exists. use a dummy typed pointer to