-#include <errno.h>
-#include <stdio.h>
-#include <string.h>
+extern "C" {
#include <unistd.h>
+}
+#include <cerrno>
+#include <cstdio>
+#include <cstring>
#include <set>
#include <id3v2tag.h>
// set::find didn't work...?!
class ByteVectorSet {
public:
- ByteVectorSet(set<TagLib::ByteVector *> bv_set)
+ ByteVectorSet(std::set<TagLib::ByteVector *> bv_set)
: set_(bv_set)
{ }
bool has(TagLib::ByteVector *bv) {
- for (set<TagLib::ByteVector *>::const_iterator it = set_.begin();
+ for (std::set<TagLib::ByteVector *>::const_iterator it = set_.begin();
it != set_.end();
++it) {
if (**it == *bv) {
}
private:
- set<TagLib::ByteVector *> set_;
+ std::set<TagLib::ByteVector *> set_;
};
static bool
int
main(int argc, char **argv)
{
- set<TagLib::ByteVector *> preserve_frames;
+ std::set<TagLib::ByteVector *> preserve_frames;
int c;
while ((c = getopt(argc, argv, "p:")) != -1) {