[Commits] [wesnoth/wesnoth] 32b45d: Make variant constructor from std::shared_ptr a te...

GitHub noreply at github.com
Thu Apr 6 17:16:54 UTC 2017


  Branch: refs/heads/wfl_memleak_fix_attempt
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 32b45d07727fc751cd551a2720da0038e68b4443
      https://github.com/wesnoth/wesnoth/commit/32b45d07727fc751cd551a2720da0038e68b4443
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/formula/variant.cpp
    M src/formula/variant.hpp

  Log Message:
  -----------
  Make variant constructor from std::shared_ptr a template

For some reason, when the variant constructor only accepts
std::shared_ptr<const variant_callable>, MSVC2013 gets confused about which
constructor it should call when it has, say,
std::shared_ptr<ai::attack_analysis>. Making the constructor a template
fixes it.





More information about the Commits mailing list