Skip to content

Commit 9e683eb

Browse files
committed
Fix Visual Studio compilation errors
1 parent 11fb900 commit 9e683eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

BitmapPlusPlus.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ namespace bmp {
5050
constexpr Pixel(std::uint8_t red, std::uint8_t green, std::uint8_t blue) noexcept: r(red), g(green), b(blue) {}
5151

5252
constexpr bool operator==(const Pixel other) const noexcept {
53-
return r == other.r and g == other.g and b == other.b;
53+
return r == other.r && g == other.g && b == other.b;
5454
}
5555

56-
constexpr bool operator!=(const Pixel other) const noexcept { return not((*this) == other); }
56+
constexpr bool operator!=(const Pixel other) const noexcept { return !((*this) == other); }
5757
};
5858

5959
static_assert(sizeof(Pixel) == 3, "Bitmap Pixel size must be 3 bytes");

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
cmake_minimum_required(VERSION 3.10)
22
project(BitmapPlusPlus VERSION "1.0.1" DESCRIPTION "Simple and Fast header only Bitmap (BMP) C++ library" LANGUAGES CXX)
3+
set(CMAKE_CXX_STANDARD 17)
34

45
# Examples
56
option(BPP_BUILD_EXAMPLES "Requires BPP to build all examples inside examples/ folder." ON)

0 commit comments

Comments
 (0)