| 12345678910111213141516171819202122232425262728 | // Copyright Takatoshi Kondo 2021//// Distributed under the Boost Software License, Version 1.0.// (See accompanying file LICENSE_1_0.txt or copy at// http://www.boost.org/LICENSE_1_0.txt)#if !defined(MQTT_BROKER_UUID_HPP)#define MQTT_BROKER_UUID_HPP#include <string>#include <boost/uuid/uuid.hpp>#include <boost/uuid/uuid_generators.hpp>#include <boost/uuid/uuid_io.hpp>#include <mqtt/broker/broker_namespace.hpp>MQTT_BROKER_NS_BEGINinline std::string create_uuid_string() {    // See https://github.com/boostorg/uuid/issues/121    thread_local boost::uuids::random_generator gen;    return boost::uuids::to_string(gen());}MQTT_BROKER_NS_END#endif // MQTT_BROKER_UUID_HPP
 |