Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by delamon

3 hours ago

Yes, that would work. But you would need to carry pointer to allocator inside box and it is extra code to run for every object.

1 comment

delamon

Reply

tcfhgj  2 hours ago

extra code meaning the drop implementation or something else?

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities