Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: fix clang compilation #12565

Merged
merged 1 commit into from Dec 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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