Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • The intrinsics of memory management for this I have covered. It's the rewriting of some of the other operations that made me question my approach. Commented Oct 14, 2014 at 11:35
  • @sbi "rewriting of some of the other operations" - when you instantiate Alexandrescu's template with the SSO policy, you get all the other std::string-style operations. How does that not address your concern? Commented Oct 14, 2014 at 11:39
  • Ah, OK then, if that is a drop-in replacement for std::basic_string, this should work. Thanks, I'll look at it. Commented Oct 14, 2014 at 11:47
  • @sbi Yup - first paragraph - "...article provides and explains a policy-based basic_string implementation that gives you twelve Standard-compliant canned implementations featuring various optimizations and tradeoffs...". Cheers. Commented Oct 14, 2014 at 11:59
  • Thanks, I could indeed "borrow" those implementations from there (+1). However, as James has pointed out, I could just as well leave them unimplement for the time being, because they are rarely ever needed. Commented Oct 14, 2014 at 13:21