Skip to content

Commit

Permalink
Replace function pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
IsabelParedes committed Feb 28, 2024
1 parent ebd21e9 commit ebefe9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/xeus/xkernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "xlogger.hpp"
#include <memory>
#include <string>
#include <functional>

namespace xeus
{
Expand All @@ -39,9 +40,9 @@ namespace xeus
using logger_ptr = std::unique_ptr<xlogger>;
using server_ptr = std::unique_ptr<xserver>;
using debugger_ptr = std::unique_ptr<xdebugger>;
using server_builder = server_ptr (*)(xcontext& context,
const xconfiguration& config,
nl::json::error_handler_t eh);
using server_builder = std::function<server_ptr(xcontext& context,
const xconfiguration& config,
nl::json::error_handler_t eh)>;
using debugger_builder = debugger_ptr (*)(xcontext& context,
const xconfiguration& config,
const std::string&,
Expand Down

0 comments on commit ebefe9c

Please sign in to comment.