Skip to content

Commit

Permalink
CLI refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptocode authored and clemahieu committed Jul 9, 2018
1 parent 560c17a commit ef86a5e
Show file tree
Hide file tree
Showing 8 changed files with 1,009 additions and 956 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ add_library (node
${SECURE_RPC_SOURCE}
rai/node/bootstrap.cpp
rai/node/bootstrap.hpp
rai/node/cli.hpp
rai/node/cli.cpp
rai/node/common.cpp
rai/node/common.hpp
rai/node/node.hpp
Expand Down
3 changes: 2 additions & 1 deletion rai/lib/errors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <rai/lib/expected.hpp>
#include <string>
#include <system_error>
#include <type_traits>

using tl::expected;
using tl::make_unexpected;
Expand All @@ -11,7 +12,7 @@ namespace nano
{
/** Returns the error code if non-zero, otherwise the value */
template <class T>
auto either (T && value, std::error_code ec) -> expected<std::remove_reference_t<T>, std::error_code>
auto either (T && value, std::error_code ec) -> expected<typename std::remove_reference<T>::type, std::error_code>
{
if (ec)
{
Expand Down
Loading

0 comments on commit ef86a5e

Please # to comment.