add bit size to config object

This commit is contained in:
DennisOSRM
2013-07-17 15:27:38 +02:00
parent 15308931e9
commit 129a846393
4 changed files with 11 additions and 2 deletions
+2
View File
@@ -23,6 +23,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
UUID::UUID() {
boost::uuids::name_generator gen(named_uuid);
named_uuid = gen(std::string(__DATE__).append(__TIME__));
has_64_bits = HAS64BITS;
}
UUID::~UUID() {
+3
View File
@@ -21,6 +21,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
#ifndef UUID_H
#define UUID_H
#include "UUID.config.h"
#include <boost/noncopyable.hpp>
#include <boost/uuid/uuid.hpp> // uuid class
#include <boost/uuid/uuid_generators.hpp> // generators
@@ -42,6 +44,7 @@ private:
UUID();
// initialize to {6ba7b810-9dad-11d1-80b4-00c04fd430c8}
boost::uuids::uuid named_uuid;
bool has_64_bits;
};
#endif /* UUID_H */