[Commits] [wesnoth/wesnoth] d405ec: use boost::string_view in config class

GitHub noreply at github.com
Sat Apr 29 17:42:06 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d405ec1c9d108ba7baf469bdedede03fcd4c0c46
      https://github.com/wesnoth/wesnoth/commit/d405ec1c9d108ba7baf469bdedede03fcd4c0c46
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2017-04-29 (Sat, 29 Apr 2017)

  Changed paths:
    M src/config.cpp
    M src/config.hpp

  Log Message:
  -----------
  use boost::string_view in config class

this replaces the older heterogenous lookup optmisation in config.?pp.
The advantage  is that it no longer requires different overloads for c
strings and std::string so it can easily be aplied to all config memeber
functions witout code duplication.





More information about the Commits mailing list