The problem is here:
//dynamic_module1, compiled with C++11
std::vector<int> some_function();
//dynamic_module2, compiled with C++14
int main() {
...//import some_function from dynamic_module1
std::vector<int> some = some_function();
...
}
Is it correct? Do I have any guaranties, that internal structures of STL containers are the same:
1) if modules was compiled by different compilers with same standard version?
2) if modules was compiled by the same compilers, but with different standard versions?