> My question is, is there a best practice around main and scoping? > > Should we create a second, 'scoped_main': > > // no namespace > int main(int argc, char* argv[]) > { > return CryptoPP::Test::scoped_main(argc, argv); > } > > NAMESPACE_BEGIN(CryptoPP) > NAMESPACE_BEGIN(Test) > int scoped_main(int argc, char* argv[]) > { > // What 'main' used to be > ... > } > NAMESPACE_END > NAMESPACE_END >
This change was checked in at https://github.com/weidai11/cryptopp/commit/34c4c9f1bd6aa. It looks fairly clean and it tested well back to 2005. If there are concerns or objections then please voice them. We can pivot on this issue to make sure things "just work" for users. Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.