Skip to content

Commit

Permalink
Add a convenience header boost/uuid.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Apr 21, 2024
1 parent 329d937 commit d1e2666
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
12 changes: 12 additions & 0 deletions include/boost/uuid.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef BOOST_UUID_HPP_INCLUDED
#define BOOST_UUID_HPP_INCLUDED

// Copyright 2024 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_generators.hpp>

#endif // #ifndef BOOST_UUID_HPP_INCLUDED
2 changes: 2 additions & 0 deletions include/boost/uuid/uuid_generators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#include <boost/uuid/nil_generator.hpp>
#include <boost/uuid/string_generator.hpp>
#include <boost/uuid/name_generator_sha1.hpp>
#include <boost/uuid/name_generator_md5.hpp>
#include <boost/uuid/name_generator.hpp>
#include <boost/uuid/random_generator.hpp>

Expand Down
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ set(BOOST_TEST_LINK_LIBRARIES Boost::uuid Boost::core)
boost_test(TYPE run SOURCES test_uuid.cpp)
boost_test(TYPE run SOURCES test_uuid_no_simd.cpp)

boost_test(TYPE run SOURCES test_include1.cpp test_include2.cpp)

boost_test(TYPE run SOURCES test_io.cpp LINK_LIBRARIES Boost::lexical_cast)

boost_test(TYPE run SOURCES test_nil_generator.cpp)
Expand Down
3 changes: 1 addition & 2 deletions test/quick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt)

#include <boost/uuid/uuid.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid.hpp>

int main()
{
Expand Down
12 changes: 2 additions & 10 deletions test/test_include1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@

// libs/uuid/test/test_include1.cpp -------------------------------//

#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_serialize.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/nil_generator.hpp>
#include <boost/uuid/name_generator.hpp>
#include <boost/uuid/string_generator.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid.hpp>

int main(int, char*[])
int main()
{
return 0;
}
9 changes: 1 addition & 8 deletions test/test_include2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,4 @@

// libs/uuid/test/test_include2.cpp -------------------------------//

#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_serialize.hpp>
#include <boost/uuid/nil_generator.hpp>
#include <boost/uuid/name_generator.hpp>
#include <boost/uuid/string_generator.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid.hpp>

0 comments on commit d1e2666

Please sign in to comment.