
2 Apr
2016
2 Apr
'16
12:45 p.m.
Andrey Semashev wrote:
Thanks. I've made a patch with a similar idea:
This works, although the following alternative: template<class T> union function_buffer_ { // as before mutable T data; }; size_t const function_buffer_size = sizeof(function_buffer_<char>); typedef function_buffer_<char[function_buffer_size]> function_buffer; seems slightly more maintainable as it doesn't perform the size computation separately.