Skip to content

Commit

Permalink
🚚 Move generate_uuid() outside of internal namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Dec 8, 2024
1 parent 66c802c commit c8ebb32
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions include/reg/reg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
#include "../../src/Registry.hpp"
#include "../../src/SharedId.hpp"
#include "../../src/UniqueId.hpp"
#include "../../src/generate_uuid.hpp"
#include "../../src/utils.hpp"
4 changes: 2 additions & 2 deletions src/internal/generate_uuid.cpp β†’ src/generate_uuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <array>
#include <random>

namespace reg::internal {
namespace reg {

static auto create_random_generator()
{
Expand All @@ -20,4 +20,4 @@ auto generate_uuid() -> uuids::uuid
return uuid_generator();
}

} // namespace reg::internal
} // namespace reg
4 changes: 2 additions & 2 deletions src/internal/generate_uuid.hpp β†’ src/generate_uuid.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once
#include <uuid.h>

namespace reg::internal {
namespace reg {

auto generate_uuid() -> uuids::uuid;

} // namespace reg::internal
} // namespace reg
2 changes: 1 addition & 1 deletion src/internal/RawRegistryImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <optional>
#include <shared_mutex>
#include "../Id.hpp"
#include "generate_uuid.hpp"
#include "../generate_uuid.hpp"

namespace reg::internal {

Expand Down

0 comments on commit c8ebb32

Please sign in to comment.