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
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
Marius Bancila
5458877f2c
faster std::hash<uuid> implementation
2021-12-23 01:00:23 +02:00
Tushar Maheshwari
6f8258b170
Fix AppVeyor build
2021-06-14 22:17:22 +05:30
Tushar Maheshwari
36778b41ae
Add compile-time checks
...
- fixes #25
2021-06-12 12:43:43 +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
Egor Kuzmin
ca94985a90
fix running tests
2020-11-05 12:13:14 +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
Egor Kuzmin
6ac13af81a
modern cmake project struct
...
Added ability to add as a dependency to another cmake project via add_subdirectory
2020-11-03 18:25:37 +03:00
Marius Bancila
845fcf9d13
more tests
2020-09-10 01:05:17 +03:00
Marius Bancila
7bd86a11e3
test time gen only on Windows
2019-05-17 15:55:43 +03:00
Marius Bancila
b74a5eb7e9
- updates after Kona
...
- new constructors
- namespace constants for name-based uuids
2019-05-17 12:33:35 +03:00
Marius Bancila
f7a15f1e72
reduced number of gen time uuids
2019-05-17 08:55:03 +03:00
Marius Bancila
8a056e7436
trivial implementation for time-based uuid generator
2019-01-09 16:04:49 +02:00
Marius Bancila
7a0f71cb10
const references and function templates
2019-01-09 11:25:14 +02:00
Marius Bancila
bc37fa250b
revision based on LEWGI feedback from San Diego
2019-01-08 16:46:19 +02:00
Michał Janiszewski
4bcf7136a5
Avoid clash with libuuid's uuid_variant symbol
...
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/tree/lib/uuid/uuid.h.in?id=94f20cd51522dd718bc4a459ea65d72a722d1874#n97
2018-08-05 00:11:05 +02:00
Michał Janiszewski
f7d5d69fd7
Mark unused variables in test
2018-08-05 00:05:34 +02:00
Michał Janiszewski
2e07420571
Add missing include for memcmp
...
memcmp is defined in cstring, yet it wasn't included in the files that
tried using it.
2018-08-05 00:00:26 +02:00
Marius Bancila
a296a1359f
from_string is static member of uuid
2018-06-29 09:38:26 +03:00
Marius Bancila
54b54bdab5
revision 1 based on standard committe and community feedback
2018-06-27 11:27:00 +03:00
Marius Bancila
13c6d59115
to_string() is inline
...
warnigns fixed
use catch testing framework
2018-05-15 09:41:49 +03:00
Marius Bancila
e1f1a1e59e
renamed nil() to is_nil()
2018-05-14 16:42:38 +03:00
Marius Bancila
8761a7ed7e
uuid_default_system -> uuid_system_generator
2018-01-31 09:05:04 +02:00
Marius Bancila
ea43f4b9ba
sha1 name generator
2018-01-17 12:17:31 +02:00
Marius Bancila
9b1ef4f116
constructors implementation
2018-01-16 16:35:48 +02:00
Marius Bancila
0a16c0c079
uuid iterators
2018-01-15 17:20:14 +02:00
Marius Bancila
998051d922
string conversion as free functions
2018-01-15 16:30:13 +02:00
Marius Bancila
4ba249e947
make_uuid replaced with uuid_default_generator
2018-01-15 10:40:19 +02:00
Marius Bancila
8353b03ebc
std::byte replaced with uint_8
2018-01-15 10:29:32 +02:00
Marius Bancila
4f3fddc0c7
cleaned up tests
2017-12-19 12:56:28 +02:00
Marius Bancila
e7186f0092
std::byte instead of uint_8, constructors
2017-12-19 11:53:42 +02:00
mariusbancila
2c4a090185
braces in array init
2017-12-18 23:33:44 +02:00
Marius Bancila
4fc3dd9d20
more tests
2017-12-18 17:39:22 +02:00
Marius Bancila
0f201b195c
more tests
2017-12-18 16:13:04 +02:00
Marius Bancila
989e5dd661
nil instead of is_nil
2017-12-18 14:23:52 +02:00
Marius Bancila
0193b64fd5
operator<, uuids_version, new tests
2017-12-09 23:56:40 +02:00
Marius Bancila
7c14506085
cmake project
2017-12-09 01:03:06 +02:00
Marius Bancila
73dd36f830
uuid from strings
2017-12-08 12:46:41 +02:00
Marius Bancila
967ba08e7f
make_uuid
2017-12-08 10:27:22 +02:00
Marius Bancila
7e845c917b
basic structure uuid
2017-12-07 12:05:55 +02:00