Search:

Type: Posts; User: manasij7479

Search: Search took 0.03 seconds.

  1. Replies
    8
    Views
    8,573

    A simple and quick but not elegant solution is to...

    A simple and quick but not elegant solution is to use C style strings here.
    (or you could allocate the total amount of memory required from scratch, and copy over the original, finally freeing it)...
  2. Replies
    8
    Views
    8,573

    Red flags! Using C memory allocation in C++ is...

    Red flags!
    Using C memory allocation in C++ is walking through a minefield as non-pod objects are not constructed.
    Here, std::string's allocators do not get the scope to reserve memory for the...
Results 1 to 2 of 2