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
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
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.
2021-12-23 14:03:03 +02:00
Riccardo Corsi
b6f1515be5
Implement stream operator<< in terms of the faster to_string() method.
2021-12-23 10:56:25 +01:00
Marius Bancila
7a3e380c21
specified size
2021-12-23 01:05:33 +02:00
Marius Bancila
5458877f2c
faster std::hash<uuid> implementation
2021-12-23 01:00:23 +02:00
Marius Bancila
8e9d0f87f5
fast to_string() implementation
2021-12-23 00:33:04 +02:00
Marius Bancila
c6ad65304b
note about mingw
2021-12-22 23:43:35 +02:00
Marius Bancila
9857cd372a
note about std::random_device
2021-12-22 23:34:09 +02:00
Marius Bancila
50482c3c07
improved documentation
2021-12-22 23:21:32 +02:00
Marius Bancila
8068131ec3
check CoCreateGuid return value
2021-12-22 19:41:06 +02:00
Marius Bancila
889fffda69
updated catch with v2.13.7
2021-12-22 19:28:39 +02:00
Marius Bancila
197905e841
Merge pull request #50 from sketchylizard/master
...
Remove old style casts to avoid warnings
2021-12-19 23:59:35 +02:00
Jason
5baab46e60
Remove old style casts to avoid warnings
...
When compiling with -Wold-style-cast clang warns about the old style
casts in uuid.h. Replace them with static_cast to avoid the warnings.
2021-12-17 08:12:20 -08:00
Marius Bancila
4959d46eb4
Merge pull request #40 from tusharpm/generators_test_windows
...
Enable generator tests on Windows CI
2021-06-25 08:35:38 +03:00
Tushar Maheshwari
1562616dab
fix short overflow UB
2021-06-25 01:10:48 +05:30
Tushar Maheshwari
85c8e28973
Enable generator tests on Windows CI
...
- Reduce included windows headers
- Reduce scope of time-generator dependencies
2021-06-17 22:27:12 +05:30
Marius Bancila
297cd66004
Merge pull request #39 from tusharpm/appveyor_fix
...
Fix AppVeyor build
2021-06-15 09:55:39 +03:00
Tushar Maheshwari
6f8258b170
Fix AppVeyor build
2021-06-14 22:17:22 +05:30
Marius Bancila
9e5162c3d3
Merge pull request #34 from EvanBalster/master
...
Remove Windows dependency (disable uuid_time_generator by default)
2021-06-14 09:54:58 +03:00
Marius Bancila
500cd57084
Merge pull request #37 from tusharpm/string_view
...
Support string_view parameters
2021-06-14 09:52:36 +03:00
Marius Bancila
260b1f1f6a
Merge pull request #38 from Reputeless/patch-1
...
fix typo in README.md
2021-06-14 09:45:02 +03:00
Ryo Suzuki
8836cbcaf1
fix typo in README.md
...
Marsenne Twister -> Mersenne Twister
2021-06-13 00:34:50 +09:00
Tushar Maheshwari
36778b41ae
Add compile-time checks
...
- fixes #25
2021-06-12 12:43:43 +05:30