Skip to content

Commit

Permalink
Fix include guard name (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smertig committed May 23, 2023
1 parent 5ac35e4 commit 9aa41d6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/range/v3/utility.hpp
Expand Up @@ -11,8 +11,8 @@
// Project home: https://github.com/ericniebler/range-v3
//

#ifndef RANGES_V3_ITERATOR_HPP
#define RANGES_V3_ITERATOR_HPP
#ifndef RANGES_V3_UTILITY_HPP
#define RANGES_V3_UTILITY_HPP

#include <range/v3/utility/any.hpp>
#include <range/v3/utility/box.hpp>
Expand Down
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Expand Up @@ -21,3 +21,4 @@ rv3_add_test(test.bug1322 bug1322 bug1322.cpp)
rv3_add_test(test.bug1335 bug1335 bug1335.cpp)
rv3_add_test(test.bug1633 bug1633 bug1633.cpp)
rv3_add_test(test.bug1729 bug1729 bug1729.cpp)
rv3_add_test(test.bug-guard bug-guard bug-guard.cpp)
19 changes: 19 additions & 0 deletions test/bug-guard.cpp
@@ -0,0 +1,19 @@
// Range v3 library
//
// Copyright Eric Niebler 2014-present
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/ericniebler/range-v3

#include <range/v3/iterator.hpp>
#include <range/v3/utility.hpp>

int main()
{
// make sure, that `utility.hpp` is included correctly
ranges::optional<int> a;
}

0 comments on commit 9aa41d6

Please sign in to comment.