Buckets:
arudradey/ml-cpu-storage / emsdk /upstream /emscripten /test /embind /test_embind_invalid_overload.cpp
| using namespace emscripten; | |
| int main() { | |
| } | |
| int foo(int a) { | |
| return 0; | |
| } | |
| int foo(float a) { | |
| return 0; | |
| } | |
| EMSCRIPTEN_BINDINGS(bindings) { | |
| // Overloads in embind all need to have a unique number of arguments. | |
| // This is invalid since both overloads take just one argument. | |
| function("foo", select_overload<int(int)>(&foo)); | |
| function("foo", select_overload<int(float)>(&foo)); | |
| } | |
Xet Storage Details
- Size:
- 441 Bytes
- Xet hash:
- 64632f2d5909d47eb640262cf12bb310a3786f574f84b44f71847a2029e73b7b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.