Skip to content

Commit

Permalink
Merge pull request #12565 from trociny/wip-18247-fixup
Browse files Browse the repository at this point in the history
common: fix clang compilation error

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed Dec 19, 2016
2 parents 991141c + bd584fe commit 2d982ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/config.cc
Expand Up @@ -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
Expand Down

0 comments on commit 2d982ae

Please sign in to comment.