Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,6 @@ option(
${PROJECT_IS_TOP_LEVEL}
)

# [CPP.NO_FLAG_FORKING]
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS
"[[msvc::no_unique_address]]"
CACHE STRING
"Name of C++ attribute for empty base optimization of data members"
)
else()
set(BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS
"[[no_unique_address]]"
CACHE STRING
"Name of C++ attribute for empty base optimization of data members"
)
endif()

configure_file(
include/beman/any_view/config.hpp.in
include/beman/any_view/config.hpp
@ONLY
)

# [CMAKE.LIBRARY_NAME]
add_library(beman.any_view INTERFACE)
# [CMAKE.LIBRARY_ALIAS]
Expand All @@ -68,10 +47,8 @@ target_sources(
PUBLIC
FILE_SET HEADERS
BASE_DIRS #
${CMAKE_CURRENT_BINARY_DIR}/include
include
FILES
${CMAKE_CURRENT_BINARY_DIR}/include/beman/any_view/config.hpp
include/beman/any_view/detail/any_iterator.hpp
include/beman/any_view/detail/concepts.hpp
include/beman/any_view/detail/intrusive_small_ptr.hpp
Expand Down
8 changes: 0 additions & 8 deletions include/beman/any_view/config.hpp.in

This file was deleted.

2 changes: 1 addition & 1 deletion include/beman/any_view/detail/any_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <beman/any_view/concepts.hpp>
#include <beman/any_view/detail/intrusive_small_ptr.hpp>
#include <beman/any_view/detail/iterator_adaptor.hpp>
#include <beman/any_view/detail/unique_address.hpp>
#include <beman/any_view/detail/no_unique_address.hpp>

namespace beman::any_view::detail {

Expand Down
2 changes: 1 addition & 1 deletion include/beman/any_view/detail/iterator_adaptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <beman/any_view/detail/concepts.hpp>
#include <beman/any_view/detail/iterator_interface.hpp>
#include <beman/any_view/detail/unique_address.hpp>
#include <beman/any_view/detail/no_unique_address.hpp>
#include <beman/any_view/detail/utility.hpp>

#include <compare>
Expand Down
14 changes: 14 additions & 0 deletions include/beman/any_view/detail/no_unique_address.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef BEMAN_ANY_VIEW_DETAIL_NO_UNIQUE_ADDRESS_HPP
#define BEMAN_ANY_VIEW_DETAIL_NO_UNIQUE_ADDRESS_HPP

#ifndef BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS
#if _MSC_VER
#define BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS() [[msvc::no_unique_address]]
#else
#define BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS() [[no_unique_address]]
#endif // _MSC_VER
#endif // BEMAN_ANY_VIEW_NO_UNIQUE_ADDRESS

#endif // BEMAN_ANY_VIEW_DETAIL_NO_UNIQUE_ADDRESS_HPP
23 changes: 0 additions & 23 deletions include/beman/any_view/detail/unique_address.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion include/beman/any_view/detail/view_adaptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef BEMAN_ANY_VIEW_DETAIL_VIEW_ADAPTOR_HPP
#define BEMAN_ANY_VIEW_DETAIL_VIEW_ADAPTOR_HPP

#include <beman/any_view/detail/unique_address.hpp>
#include <beman/any_view/detail/no_unique_address.hpp>
#include <beman/any_view/detail/view_interface.hpp>

namespace beman::any_view::detail {
Expand Down