[Commits] [wesnoth/wesnoth] 7e3b91: Fixup compilation of type trait aliases

GitHub noreply at github.com
Mon May 15 09:51:45 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7e3b91ef8c9901f46d8382438c7b0e1ba5fc7d9e
      https://github.com/wesnoth/wesnoth/commit/7e3b91ef8c9901f46d8382438c7b0e1ba5fc7d9e
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/utils/type_trait_aliases.hpp

  Log Message:
  -----------
  Fixup compilation of type trait aliases

Turns out 'inline constexpr' is a C++17 feature. Fallback to 'static constexpr' with C++14,
except with VS < 2017, where variable templates are not supported.





More information about the Commits mailing list