Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type utilities #11

Merged
merged 2 commits into from
Mar 18, 2024
Merged
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
10 changes: 9 additions & 1 deletion ProjectOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ macro(lefticus_tools_setup_options)
option(lefticus_tools_ENABLE_SANITIZER_THREAD "Enable thread sanitizer" OFF)
option(lefticus_tools_ENABLE_SANITIZER_MEMORY "Enable memory sanitizer" OFF)
option(lefticus_tools_ENABLE_UNITY_BUILD "Enable unity builds" OFF)
option(lefticus_tools_ENABLE_CLANG_TIDY "Enable clang-tidy" ON)

# Only enable clang-tidy by default if we're targetting clang.
# Why? because you might have other flags and settings that don't work
# Between clang and gcc
if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*")
option(lefticus_tools_ENABLE_CLANG_TIDY "Enable clang-tidy" ON)
else()
option(lefticus_tools_ENABLE_CLANG_TIDY "Enable clang-tidy" OFF)
endif()
option(lefticus_tools_ENABLE_CPPCHECK "Enable cpp-check analysis" OFF)
option(lefticus_tools_ENABLE_PCH "Enable precompiled headers" OFF)
option(lefticus_tools_ENABLE_CACHE "Enable ccache" ON)
Expand Down
3 changes: 3 additions & 0 deletions cmake/Hardening.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ macro(
set(NEW_CXX_DEFINITIONS "${NEW_CXX_DEFINITIONS} -D_GLIBCXX_ASSERTIONS")
message(STATUS "*** GLIBC++ Assertions (vector[], string[], ...) enabled")

# Hardening requires some amount of optimization enabled
if (CMAKE_BUILD_TYPE MATCHES ".*Rel.*")
set(NEW_COMPILE_OPTIONS
"${NEW_COMPILE_OPTIONS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3")
message(STATUS "*** g++/clang _FORTIFY_SOURCE=3 enabled")
endif()

# check_cxx_compiler_flag(-fpie PIE)
#if(PIE)
Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/consteval_invoke.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef LEFTICUS_TOOLS_CONSTEVAL_INVOKE_HPP
#define LEFTICUS_TOOLS_CONSTEVAL_INVOKE_HPP

Expand Down
27 changes: 27 additions & 0 deletions include/lefticus/tools/flat_map.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/

#ifndef TOOLS_FLAT_MAP_HPP
#define TOOLS_FLAT_MAP_HPP

Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/flat_map_adapter.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef LEFTICUS_TOOLS_FLAT_MAP_HPP
#define LEFTICUS_TOOLS_FLAT_MAP_HPP

Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/lambda_coroutines.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef LAMBDA_COROUTINES_HPP
#define LAMBDA_COROUTINES_HPP

Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/non_promoting_ints.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef LEFTICUS_TOOLS_NON_PROMOTING_INTS_HPP
#define LEFTICUS_TOOLS_NON_PROMOTING_INTS_HPP

Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/simple_stack_flat_map.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef TOOLS_SIMPLE_STACK_FLAT_MAP_HPP
#define TOOLS_SIMPLE_STACK_FLAT_MAP_HPP

Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/simple_stack_string.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef LEFTICUS_TOOLS_SIMPLE_STACK_STRING_HPP
#define LEFTICUS_TOOLS_SIMPLE_STACK_STRING_HPP

Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/simple_stack_vector.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef LEFTICUS_TOOLS_SIMPLE_STACK_VECTOR_HPP
#define LEFTICUS_TOOLS_SIMPLE_STACK_VECTOR_HPP

Expand Down
28 changes: 28 additions & 0 deletions include/lefticus/tools/static_views.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
*/


#ifndef LEFTICUS_TOOLS_STATIC_VIEWS_HPP
#define LEFTICUS_TOOLS_STATIC_VIEWS_HPP

Expand Down Expand Up @@ -72,7 +100,7 @@

consteval auto to_string_view(creates_string_like auto callable)
{
constexpr auto &static_data = make_static<to_right_sized_array(callable)>;

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, On)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, On)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,28>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, On)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,6>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, On)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\relaxed_constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, Off)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, Off)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,28>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, Off)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,6>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, Off)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\relaxed_constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, On)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, On)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,28>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, On)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,6>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, On)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\relaxed_constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, Off)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, Off)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,28>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, Off)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,6>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 103 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, Off)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\relaxed_constexpr_tests.vcxproj]
using Value_Type = typename std::decay_t<decltype(static_data)>::value_type;
std::basic_string_view<Value_Type> result(static_data.begin(), static_data.end());
return result;
Expand All @@ -80,7 +108,7 @@

consteval auto to_span(creates_iterable auto callable)
{
constexpr auto &static_data = make_static<to_right_sized_array(callable)>;

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, On)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, On)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,3>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, Off)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, Off)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,3>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, On)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Debug, On)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,3>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, Off)

'Data': invalid template argument for 'lefticus::tools::make_static', expected compile-time constant expression [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]

Check failure on line 111 in include/lefticus/tools/static_views.hpp

View workflow job for this annotation

GitHub Actions / Test (windows-2022, msvc, Visual Studio 17 2022, Release, Off)

'specialization': cannot convert from 'int' to 'std::array<Value_Type,3>' [D:\a\tools\tools\build\test\constexpr_tests.vcxproj]
using Value_Type = typename std::decay_t<decltype(static_data)>::value_type;
std::span<const Value_Type> result(static_data.begin(), static_data.end());
return result;
Expand Down
Loading
Loading