1
0
mirror of https://github.com/mariusbancila/stduuid.git synced 2026-10-24 02:49:07 +03:00
Commit Graph

229 Commits

Author SHA1 Message Date
Marius Bancila
838d53575a fixed readme related to uuid_name_generator 2026-08-13 16:00:50 +03:00
Marius Bancila
aa77ef72ca Merge pull request #95 from mariusbancila/feature/std-format
support std::format
2026-08-13 15:44:58 +03:00
Marius Bancila
cff7082def support std::format 2026-08-13 15:36:59 +03:00
Marius Bancila
6708a1beb8 Merge pull request #94 from mariusbancila/fix/span-detection-guard
Fix/span detection guard
2026-08-13 13:44:12 +03:00
Marius Bancila
572b68b124 Merge branch 'master' of https://github.com/mariusbancila/stduuid into fix/span-detection-guard 2026-08-13 13:37:16 +03:00
Marius Bancila
2ab20a41f3 span tests 2026-08-13 13:36:58 +03:00
Marius Bancila
ef02380e10 Merge pull request #79 from marovira/master
[brief] Make the installed version number match stduuid version.
2026-08-13 13:36:32 +03:00
Marius Bancila
b1ab1f9d7b Merge pull request #93 from mariusbancila/ci/github-actions
replace travis and appveyor with github actions
2026-08-13 12:54:37 +03:00
Marius Bancila
d57bbacfef replace travis and appveyor with github actions
Tests now run on windows, linux and macos with C++17, C++20 and C++23.
The standard is selected through the new CXX_STD_VER cache variable, which
the test target passes to target_compile_features instead of hardcoding
CXX_STANDARD 17/20 based on UUID_USING_CXX20_SPAN.

Coverage that appveyor had is kept: a Win32 configuration and a build with
UUID_SYSTEM_GENERATOR enabled on all three platforms. UUID_TIME_GENERATOR
is left out because its test fails, see the pull request for details.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 12:22:48 +03:00
Marius Bancila
8e5416e3e1 Merge pull request #72 from OlivierLDff/patch-1
Only use embedded GSL if there is no target "GSL"
2026-08-13 10:59:39 +03:00
Marius Bancila
d4f6fad87f Merge pull request #84 from topazus/fix-cmake
Use GNUInstallDirs instead of hardcoded paths
2026-08-13 10:57:53 +03:00
Marius Bancila
6e42b0fa34 Merge pull request #89 from leonvictor/master
Fix CMakeLists.txt using CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR
2026-08-13 10:57:26 +03:00
Marius Bancila
2bfb77926f Merge pull request #92 from aryamansingh2008/fix-ndk23-android-usage
Fix span header and __cpp_lib_span usage for old andorid ndk like v23
2026-08-13 10:56:56 +03:00
Aryaman
945596dd40 remove invalid endif 2026-02-12 19:39:28 +05:30
Aryaman
c70e810faf Fix span header and __cpp_lib_span usage for old andorid ndk like v23 2026-02-12 18:23:26 +05:30
Léon
c359e442ed Fix CMakeLists.txt using CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR 2024-06-26 19:12:18 +02:00
topazus
071709533b Use GNUInstallDirs instead of hardcoded paths 2023-12-19 11:19:31 +08:00
Mauricio A. Rovira Galvez
b10e4d76c0 [brief] Fixes the name of the installed version file.
[detailed]
- CMake expects the file to be named stduuid-config-version.cmake, not
  stduuid-version.cmake.
- This now fully enables support for finding the package by version
  number.
2023-06-09 16:50:58 -07:00
Mauricio A. Rovira Galvez
c889d9f8b4 [brief] Make the installed version number match stduuid version.
[detailed]
- Installed version was still at 1.0 even though library is now at
  1.2.3.
2023-06-09 16:29:28 -07:00
Olivier Le Doeuff
29a7b13718 Only use embedded GSL if there is no target "GSL"
When using stduuid with FetchContent/CPM.cmake, and also including GSL with such process, it create a conflict and it then become ambiguous which file is used where.
Concrete use case:
```cmake
CPMAddPackage(
  NAME GSL
  GIT_REPOSITORY "https://github.com/microsoft/GSL"
  GIT_TAG "v4.0.0"
)
CPMAddPackage(
  NAME stduuid
  GIT_REPOSITORY "https://github.com/mariusbancila/stduuid"
  GIT_TAG "master"
)
```
2022-08-04 18:25:21 +02:00
Marius Bancila
3afe7193fa Merge pull request #67 from chaorunrun/compile-for-c++17
Fix errors on compilation with c++17
v1.2.3
2022-06-16 12:21:45 +03:00
Adam Jiang
e5da05d8de Use <gsl/span> 2022-05-25 09:47:48 +08:00
Adam Jiang
30b95f9c8f Merge branch 'master' into compile-for-c++17 2022-05-19 16:30:40 +08:00
Marius Bancila
3dca9d816c Merge pull request #64 from OlivierLDff/optional-install
Optional install
2022-05-19 09:32:09 +03:00
Marius Bancila
d1f0f7f0ba Merge pull request #69 from sid-dahiya/sid-dahiya/FixMsvcHiddenFriendError
Fix hidden friend issue for MSVC
2022-05-19 09:05:40 +03:00
Marius Bancila
cd9ca5e7d7 build with VS 2019 & 2022 2022-05-19 09:04:50 +03:00
Sid Dahiya
dfe3d39c10 Fix hidden friend issue for MSVC
This change is adding the `/Zc:hiddenFriend` option to address strict validation in MSVC 19.32.31328.0
2022-05-18 15:24:41 -07:00
Adam Jiang
979ba59e41 Fix errors on compilation with c++17 2022-05-18 22:17:02 +08:00
Marius Bancila
db4963048d merged 2022-05-10 09:09:42 +03:00
Olivier Le Doeuff
44160cca3f Deactivate unit test by default when stduuid is not the main CMake project 2022-05-06 17:22:56 +02:00
Olivier Le Doeuff
2ff6222e9f Make install optional (expected behavior in CMake FetchContent) 2022-05-06 17:22:11 +02:00
Marius Bancila
c1e1c144af Merge pull request #62 from NovaSmoof/fixing-static-analysis
I believe this fixes an alignment issue.
2022-04-11 10:27:34 +03:00
Marius Bancila
9341e579f7 Merge pull request #61 from NovaSmoof/master
Added Appropriate nodiscards
2022-04-11 10:25:28 +03:00
Arthur.e
39b505ee95 I believe this fixes an alignment issue.
Casting the uint8_t array to a uint32_t pointer may cause it to become misaligned. So making it alignas a uint32 array should remove the undefined behavior.
2022-04-04 10:58:40 -07:00
Arthur.e
11a678d7fe Merge branch 'same-thing' 2022-04-04 10:00:21 -07:00
Arthur.e
02e2989771 Made all the things nodiscard
They should be.
2022-04-04 10:00:02 -07:00
Marius Bancila
1d3720fbcd whitespaces 2022-02-23 18:28:39 +02:00
Marius Bancila
cdebc5b78d pragma once replaced
added constexpr
2022-02-23 18:24:00 +02:00
Marius Bancila
5c538cca02 Merge pull request #57 from rickyviking/windows_defines
Restored Windows related defines
v1.2.2
2022-01-14 17:29:34 +02:00
Riccardo Corsi
f58993d041 Restored Windows related defines, which might be needed even now, with fewer Windows headers included 2022-01-14 15:10:07 +01:00
Marius Bancila
66a4adec66 Merge pull request #56 from sketchylizard/FixTemplateParameters
Forward declare to_string function
2022-01-14 08:40:12 +02:00
Jason
c4728ee83b Forward declare to_string function
Forward declare to_string function before it is used in a friend
declaration and deleted the default template parameters from the
definition to prevent warnings in GCC.

Also add "if constexp" to an if statement that was constant.
2022-01-13 13:52:16 -08:00
Marius Bancila
1da3294a8b Merge pull request #54 from sketchylizard/sketchylizard/FixInlineVariables
Declare variables as inline
v1.2.1
2022-01-13 10:10:23 +02:00
Jason
76c4651202 Removed clang.format changes 2022-01-10 13:44:58 -08:00
Jason
5f739d3e26 Declare variables as inline
Declare empty_guid and guid_encoder as inline to fix multiple defined
symbol errors when compiling with clang++.
2022-01-04 07:26:47 -08:00
Marius Bancila
9357e5280c Merge pull request #53 from kcsaul/master
Fix operator<< compiler error when c++20 enabled
2021-12-30 12:16:56 +02:00
Kevin Saul
8723ae1a33 Fix operator<< compiler error when c++20 enabled 2021-12-30 17:51:08 +13:00
Marius Bancila
4400e13797 Merge pull request #52 from sketchylizard/master
Fix compiler warnings for gcc & clang
2021-12-24 00:20:03 +02:00
Jason
d393e00037 Fix compiler warnings for gcc & clang
When compiling with -Wimplicit-int-conversion and -Wsign-conversion
gcc/clang give warnings for a handful of lines. Silence the warnings
by adding explicit casts.
2021-12-23 08:44:37 -08:00
Marius Bancila
487f364da7 Merge pull request #51 from rickyviking/stream_operator
Implement stream operator<< in terms of the faster to_string() method.
v1.2
2021-12-23 14:03:03 +02:00