2 ms·
As others have pointed out up-thread, the bug only triggers on a very specific use case - changing the body of the sample to: User u{make_1(), make_2()
by al2o3cr 10y ago
As others have pointed out up-thread, the bug only triggers on a very specific use case - changing the body of the sample to:
User u{make_1(), make_2()};
process(u);
causes the first resource to be correctly destroyed.