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.

Required fields*

12
  • 5
    Note, that you wrote using namespace std; at the beginning of the header that will be included in every project that will use your library... Commented Dec 21, 2012 at 14:59
  • 1
    never put using namespace std; in a shared header file (to expand on LihO's comment, in case you're wondering why its getting up votes). Commented Dec 21, 2012 at 15:02
  • 2
    Expanding on what LihO wrote: I would remove the 'using' from the header file and use explicit namespace on the types (i.e std::vector<std::string>) Commented Dec 21, 2012 at 15:02
  • 2
    It looks like the code you're compiling is missing a ; somewhere. I don't see how you could get those errors from the code you posted though, unless one of the system headers is broken. Commented Dec 21, 2012 at 15:04
  • @MikeSeymour there's a lot of ... in his post. So there's a lot of code missing, he is missing a ; somewhere though, I concur. Commented Dec 21, 2012 at 15:08