Commit Graph

190 Commits

Author SHA1 Message Date
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
Tushar Maheshwari
4ff25c702f Fix CMake unused variable warning 2021-06-12 12:19:45 +05:30
Tushar Maheshwari
dca30fff7f Update Travis config 2021-06-12 12:14:46 +05:30
Tushar Maheshwari
2e49ce59f4 Remove redundant from_string overload 2021-06-12 11:33:41 +05:30
Tushar Maheshwari
b16884a774 allow basic_string_view parameter
- uuid::is_valid_uuid
- uuid::from_string
- uuid_name_generator::operator()
2021-05-16 13:18:21 +05:30
EvanBalster
359b195c78 uuid_time_generator disabled, eliminating Windows dependency; #define UUID_TIME_GENERATOR to re-enable 2020-12-27 14:36:17 -08:00
Marius Bancila
5890c94bfa
Merge pull request #31 from egor-spk/fix-travis-build
Fix travis build
2020-11-09 14:48:44 +02:00
Egor Kuzmin
74b6b8be48 Added DESTINATION instead of TYPE in an install directive 2020-11-09 14:51:02 +03:00
Marius Bancila
a9b5941914
Merge pull request #30 from egor-spk/fix-readme-example
fix examples in README.md
2020-11-09 11:49:12 +02:00
Marius Bancila
1b74bbc183
Merge pull request #28 from egor-spk/refactor-cmake-project
Refactor cmake project
2020-11-09 11:12:42 +02:00
Marius Bancila
afef8d228d
Merge pull request #29 from egor-spk/fix-warnings
remove unused variable
2020-11-09 11:11:40 +02:00
Marius Bancila
d55abecb97
Merge pull request #26 from OptoCloud/patch-1
Remove [-Wconversion] warning in GCC
2020-11-09 11:10:41 +02:00
Egor Kuzmin
0d74ad6a26 fix examples in README.md 2020-11-06 12:21:41 +03:00
Egor Kuzmin
c8f730e77c remove find_dependency for CoreFoundation 2020-11-06 11:24:00 +03:00
Egor Kuzmin
40c08315a7 remove unused variable 2020-11-05 18:05:43 +03:00
Egor Kuzmin
a268dfbdb6 install step and create config-file package 2020-11-05 17:53:38 +03:00
Egor Kuzmin
ca94985a90 fix running tests 2020-11-05 12:13:14 +03:00
Egor Kuzmin
150f589fb1 default disable system generator 2020-11-05 11:58:24 +03:00
Egor Kuzmin
85ff00a004 using std::span from c++20
- Added the ability to use span from std when standard 20 is enabled.
- Previous catch version didn't work with 20 standard.
2020-11-05 10:34:56 +03:00