How do I define my own main() function when testing with boost?
main()
Boost is using it\'s own main function, but I\'m using a custom memory manager and it ne
I do not believe you actually need your own main. I think you are much better off with global fixture:
struct AllocatorSetup { AllocatorSetup() { /* setup your allocator here */ } ~AllocatorSetup() { /* shutdown your allocator/check memory leaks here */ } }; BOOST_GLOBAL_FIXTURE( AllocatorSetup );