I didn’t think this could deserve a post, but a friend of mine asked me about how to wrap a C++ class in Fortran, which means wrapping it in C.
I thought of one obvious way, but there is also a typesafe version that should be used.
I didn’t think this could deserve a post, but a friend of mine asked me about how to wrap a C++ class in Fortran, which means wrapping it in C.
I thought of one obvious way, but there is also a typesafe version that should be used.