Fix build error on old (buggy?) versions of libstdc++

Closes #5801.
This commit is contained in:
Mahmoud Al-Qudsi 2019-04-09 22:42:16 -05:00
parent a21c65a5ac
commit f1b261388a

View file

@ -329,7 +329,9 @@ static std::unique_ptr<const var_dispatch_table_t> create_dispatch_table() {
var_dispatch_table->add(L"fish_history", handle_fish_history_change);
var_dispatch_table->add(L"TZ", handle_tz_change);
var_dispatch_table->add(L"fish_use_posix_spawn", handle_fish_use_posix_spawn_change);
return var_dispatch_table;
// This std::move is required to avoid a build error on old versions of libc++ (#5801)
return std::move(var_dispatch_table);
}
static void run_inits(const environment_t &vars) {