Skip to content

Commit

Permalink
updating context creation in the exemple
Browse files Browse the repository at this point in the history
  • Loading branch information
SandrineP committed Dec 13, 2024
1 parent dea7c33 commit acca30b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/example/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

#include "xeus/xkernel.hpp"
#include "xeus/xkernel_configuration.hpp"

#include "xeus-zmq/xserver_zmq.hpp"
#include "xeus-zmq/xzmq_context.hpp"

#include "custom_interpreter.hpp"

Expand All @@ -21,7 +23,8 @@ int main(int argc, char* argv[])
std::string file_name = (argc == 1) ? "connection.json" : argv[2];
xeus::xconfiguration config = xeus::load_configuration(file_name);

auto context = xeus::make_context<zmq::context_t>();
// Create context
std::unique_ptr<xeus::xcontext> context = xeus::make_zmq_context();

// Create interpreter instance
using interpreter_ptr = std::unique_ptr<custom::custom_interpreter>;
Expand Down

0 comments on commit acca30b

Please sign in to comment.