Skip to content

Commit 7ea9444

Browse files
authored
Update xcomm.cpp
1 parent b335781 commit 7ea9444

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xcomm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ namespace xeus_javascript
124124

125125
void export_xcomm(){
126126
em::class_<xcomm>("Comm")
127-
.constructor<std::string, nl::json>()
127+
.smart_ptr<std::unique_ptr<xcomm>>("xcomm")
128+
.class_function("create", &xcomm::create)
128129
.function("comm_id", &xcomm::comm_id)
129130
.function("kernel", &xcomm::kernel)
130131
.function("open", &xcomm::open)

0 commit comments

Comments
 (0)