ywkaras commented on a change in pull request #6241:
URL: https://github.com/apache/trafficserver/pull/6241#discussion_r536189482
##########
File path: include/tscore/Allocator.h
##########
@@ -152,7 +153,7 @@ template <class C> class ClassAllocator : public Allocator
@param tail pointer to be freed.
@param num_item of blocks to be freed.
*/
- void
+ std::enable_if_t<!Destruct_on_free, void>
Review comment:
Yes this is a Standard library template that uses "substitution failure
is not a error". if Destruct_of_free is false, the member function will not be
defined for the instantiation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]