Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Remove constructor whose meaning changed. #1074

Open
wants to merge 1 commit into
base: develop-boxed
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions libraries/eosiolib/contracts/eosio/action.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,6 @@ namespace eosio {
constexpr action_wrapper()
: code_name(DefaultContract), permissions() {}

constexpr action_wrapper( eosio::name user )
: code_name(DefaultContract), permissions({1,{user,"active"_n}}) {}

action_wrapper( eosio::permission_level l )
: code_name(DefaultContract), permissions({1,l}) {}

Expand All @@ -489,7 +486,9 @@ namespace eosio {
: code_name(std::forward<Code>(code)), permissions({1, perm}) {}

/*
template <typename Code>
// Commented out so that code using the ambiguous constructor that was removed will fail to compile.
// Reenable this when merging into develop.
template <typename Code, typename = std::enable_if_t<std::is_constructible_v<name, Code>>>
constexpr action_wrapper(Code&& code)
: code_name(std::forward<Code>(code)) {}
*/
Expand Down