remove unused TempoMap::tempo_at_beat(). implement unused tempo_at_quarter_note().
[ardour.git] / libs / pbd / uuid.cc
index 0ccffa209101288449a8fd7dd9f1825b8d194e12..c74de2536caf54bad3b6bcde5f71e178418ae09f 100644 (file)
 
 */
 
-#include <pbd/uuid.h>
+#include <boost/uuid/uuid_io.hpp>
+#include "pbd/uuid.h"
 
-using namespace PBD;
-
-UUID&
-UUID::operator= (std::string const & str)
+PBD::UUID&
+PBD::UUID::operator= (std::string const & str)
 {
-       uuid_parse (str.c_str(), id);
+        boost::uuids::string_generator gen;
+        *((boost::uuids::uuid*) this) = gen (str);
        return *this;
 }
 
 std::string
-UUID::to_s () const
+PBD::UUID::to_s () const
 {
-       char buf[37];
-       uuid_unparse (id, buf);
-       return std::string (buf);
+        return boost::uuids::to_string (*this);
 }