Honestly, I don't understand where in partucular you want to use 'std::unique_ptr'. What pointers should be wrapped in it and why? (You said "any pointer data members", but this seems a really strange thing to do).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I prefere to solve memory management problems by using global custom allocator (memory pool, erena, whatever you call it). re2c makes a lot of small allocations/deallocations. Checking for failure in some few cases is a bad idea.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How should your software react if the exception "std::bad_alloc" will eventually be thrown during the construction for an object of the class like "CharSet"?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
re2c tries to be C++98 compatible.
How do you think about to reuse the approach by Howard E. Hinnant eventually?
Honestly, I don't understand where in partucular you want to use 'std::unique_ptr'. What pointers should be wrapped in it and why? (You said "any pointer data members", but this seems a really strange thing to do).
I prefere to solve memory management problems by using global custom allocator (memory pool, erena, whatever you call it). re2c makes a lot of small allocations/deallocations. Checking for failure in some few cases is a bad idea.
How should your software react if the exception "std::bad_alloc" will eventually be thrown during the construction for an object of the class like "CharSet"?
Fail? No memory ---- no DFAs. :)