[wesnoth-commits] [wesnoth/wesnoth] 75a719: Fix Wdeprecated-copy in wfl::variant, and add move...

Steve Cotton noreply at github.com
Tue Jul 16 00:12:33 UTC 2019


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 75a71933e7e7f62714a30a3f8385a8c8373bb70d
      https://github.com/wesnoth/wesnoth/commit/75a71933e7e7f62714a30a3f8385a8c8373bb70d
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2019-07-16 (Tue, 16 Jul 2019)

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

  Log Message:
  -----------
  Fix Wdeprecated-copy in wfl::variant, and add move operations

Fixes the majority of the warnings in issue #4166.

This class already shared copies of value_ between instances,
it seems to be the immutable design pattern so can share from
const to non-const instances safely.





More information about the Commits mailing list