Skip to content

Commit f6711dc

Browse files
authored
Update xcomm.cpp
1 parent 2246642 commit f6711dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/xcomm.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*
66
* The full license is in the file LICENSE, distributed with this software.
77
****************************************************************************/
8+
#include <memory>
89

910
#include "xcomm.hpp"
1011

@@ -35,6 +36,14 @@ namespace xeus_javascript
3536
{
3637
}
3738

39+
std::unique_ptr<xcomm> xcomm::create(
40+
std::string target_name,
41+
nl::json kwargs
42+
)
43+
{
44+
return std::make_unique<xcomm>(target_name, kwargs);
45+
}
46+
3847
xcomm::xcomm(xeus::xcomm&& comm)
3948
: m_comm(std::move(comm))
4049
{

0 commit comments

Comments
 (0)