Skip to content

Commit

Permalink
[C++] 0.1.2
Browse files Browse the repository at this point in the history
conanfile.txt - is full
CMakeLists.txt - is full
  • Loading branch information
uselessgoddess committed Jul 7, 2021
1 parent 3c47b4f commit 23351f3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ conan_basic_setup(TARGETS)

add_library(${PROJECT_NAME}.Library INTERFACE)
target_include_directories(${PROJECT_NAME}.Library INTERFACE ${PROJECT_NAME})
target_link_libraries(${PROJECT_NAME}.Library INTERFACE CONAN_PKG::platform.delegates)
target_link_libraries(${PROJECT_NAME}.Library INTERFACE CONAN_PKG::platform.converters)
target_link_libraries(${PROJECT_NAME}.Library INTERFACE CONAN_PKG::platform.exceptions)
target_link_libraries(${PROJECT_NAME}.Library INTERFACE CONAN_PKG::platform.hashing)

add_executable(${PROJECT_NAME}.Tests ${PROJECT_NAME}.Tests/AllTests.cpp)
target_link_libraries(${PROJECT_NAME}.Tests PRIVATE ${PROJECT_NAME}.Library)
Expand Down
4 changes: 2 additions & 2 deletions cpp/Platform.Ranges.Tests/RangeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
TEST(RangesTests, DifferenceTest)
{
auto range = Range(1, 3);
//ASSERT_EQ(2, Platform::Ranges::RangeExtensions::Difference(range));
ASSERT_EQ(2, Platform::Ranges::Difference(range));
}

TEST(RangesTests, ToStringTest)
{
auto range = Range(1, 3);
//ASSERT_EQ("[1, 3]", Platform::Converters::To<std::string>(range).data());
ASSERT_EQ("[1, 3]", Platform::Converters::To<std::string>(range));
}

TEST(RangesTests, EqualityTest)
Expand Down
4 changes: 2 additions & 2 deletions cpp/Platform.Ranges/Platform.Ranges.TemplateLibrary.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<title>LinksPlatform's Platform.Ranges Template Library</title>
<summary>LinksPlatform's Platform.Ranges is a Template Library what contains non-abstract class templates.</summary>
<description>LinksPlatform's Platform.Ranges is a Template Library what contains set of C++ non-abstract class templates. Use Platform.Ranges.h file to include the library.</description>
<releaseNotes>Changed C++ standard from C++03 to C++20</releaseNotes>
<version>0.1.1</version>
<releaseNotes>Changed C++ standard from C++03 to C++20.</releaseNotes>
<version>0.1.2</version>
<authors>Konstantin Diachenko</authors>
<owners>Konstantin Diachenko</owners>
<copyright>Konstantin Diachenko</copyright>
Expand Down
2 changes: 1 addition & 1 deletion cpp/Platform.Ranges/Platform.Ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <limits>
#include <Platform.Exceptions.h>
#include <Platform.Converters.h>
//#include <Platform.Hashing.h>
#include <Platform.Hashing.h>

#include "Range[T].h"
#include "Range.h"
Expand Down
4 changes: 2 additions & 2 deletions cpp/Platform.Ranges/Range[T].h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public: constexpr Range(T minimum, T maximum)
: Minimum(std::move(minimum)), Maximum(std::move(maximum))
{
if (minimum > maximum) // for constexpr
if (minimum > maximum) // for constexpr support
{
Always::MaximumArgumentIsGreaterOrEqualToMinimum(minimum, maximum, "maximum");
}
Expand All @@ -51,7 +51,7 @@

public: constexpr explicit operator std::tuple<T, T>() const noexcept { return { Minimum, Maximum }; }

public: constexpr explicit Range(std::tuple<T, T> tuple) : Range(std::get<0>(tuple), std::get<1>(tuple)) noexcept { }
public: constexpr explicit Range(std::tuple<T, T> tuple) noexcept : Range(std::get<0>(tuple), std::get<1>(tuple)) { }

// TODO: @Voider extension
template<typename TOther> requires std::convertible_to<T, TOther>
Expand Down
1 change: 1 addition & 0 deletions cpp/conanfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ gtest/cci.20210126
platform.exceptions/0.1.0
platform.converters/0.1.0
platform.delegates/0.1.3
platform.hashing/0.1.0

[generators]
cmake

0 comments on commit 23351f3

Please sign in to comment.