Skip to content

Commit

Permalink
Fix compilation error with zug::comp and only one fn
Browse files Browse the repository at this point in the history
  • Loading branch information
arximboldi committed Aug 17, 2022
1 parent 9bcee29 commit 5da3b90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ewig/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <lager/resources_path.hpp>
#include <lager/extra/cereal/immer_box.hpp>
#include <lager/extra/cereal/tuple.hpp>

#include <cereal/types/string.hpp>
#include <cereal/types/unordered_map.hpp>

Expand Down Expand Up @@ -128,12 +129,11 @@ void run(int argc, const char** argv, const std::string& fname)
auto term = terminal{serv};
auto store = lager::make_store<action>(
application{term.size(), key_map_emacs},
lager::with_boost_asio_event_loop{serv.get_executor(), [&] { term.stop(); }},
zug::comp(
lager::with_boost_asio_event_loop{serv.get_executor(), [&] { term.stop(); }}
#ifdef EWIG_ENABLE_DEBUGGER
lager::with_debugger(debugger),
, lager::with_debugger(debugger)
#endif
lager::identity));
);
watch(store, draw);
term.start([&] (auto ev) { store.dispatch(ev); });
store.dispatch(command_action{"load", fname});
Expand Down

0 comments on commit 5da3b90

Please sign in to comment.