[wesnoth-commits] [wesnoth/wesnoth] a0cc8c: battle_context: implement move constructor and mov...

GitHub noreply at github.com
Fri Nov 2 18:36:22 UTC 2018


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a0cc8cbdfff8c49ee43dbf59a6dc789f5019642f
      https://github.com/wesnoth/wesnoth/commit/a0cc8cbdfff8c49ee43dbf59a6dc789f5019642f
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-11-02 (Fri, 02 Nov 2018)

  Changed paths:
    M src/actions/attack.cpp
    M src/actions/attack.hpp

  Log Message:
  -----------
  battle_context: implement move constructor and move assignment operator
by hand

I also explicitly deleted the copy constructor and copy assignment
operator to document why the move versions exist. (The copy ones can't
be compiled because battle_context contains `unique_ptr`s.)

This reverts commit a76cc6e9ce18ec7594ef16b320526edc5ee3ee0a.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Commits mailing list