Skip to content

Commit 4ab6d03

Browse files
committed
c++17 compile fix
1 parent 6cf1c88 commit 4ab6d03

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2727

2828
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
2929

30+
set(CMAKE_CXX_STANDARD 17)
31+
3032
set(INTERPROCEDURAL_OPTIMIZATION ON)
3133

3234
option(BINARY_PACKAGE_BUILD "Sets march optimization to generic" OFF)

src/librawspeed/decompressors/AbstractLJpegDecompressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void AbstractLJpegDecompressor::parseDHT() {
146146
if (huff[htIndex] != nullptr)
147147
ThrowRDE("Duplicate table definition");
148148

149-
auto ht = make_unique<HuffmanTable>();
149+
auto ht = std::make_unique<HuffmanTable>();
150150

151151
// copy 16 bytes from input stream to number of codes per length table
152152
uint32 nCodes = ht->setNCodesPerLength(input.getBuffer(16));

0 commit comments

Comments
 (0)