Is there are an easier way of serializing a vector attribute of an object in c++ using sqlite3?

In my method, I used ostringstream to store the contents of my vector and returned the string.

Define "easier" for your needs. With a vector, I'd probably do the same thing you've done, but there are serialization libraries (Boost comes to mind), but they can be non-trivial to use.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.