Skip to content

Instantly share code, notes, and snippets.

@LorenDB
LorenDB / example.cpp
Created December 26, 2023 22:24
An example Polyglot project that demonstrates how Rust can use C++ functions that use std::string
#include <iostream>
#include <string>
std::string cppStdString()
{
return "This is a C++ std::string";
}
std::string lotsOfStdStrings(std::string a, std::string b)
{