Start implementing some code that passes argument to functions and signals

This commit is contained in:
Olivier Goffart 2020-09-08 14:37:44 +02:00
parent a192ffe283
commit a6504ee61b
6 changed files with 100 additions and 53 deletions

View file

@ -58,6 +58,9 @@ struct SharedString
return std::string_view(a) != std::string_view(b);
}
friend std::ostream& operator<< (std::ostream& stream, const SharedString& shared_string) {
return stream << std::string_view(shared_string);
}
private:
/// Use SharedString::from_number
explicit SharedString(double n) { cbindgen_private::sixtyfps_shared_string_from_number(this, n); }