Upgraded code to switch to C++17. Tested on Debian Buster
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ Image::load(const std::vector<unsigned char>& rawData)
|
||||
}
|
||||
|
||||
bool
|
||||
Image::load(boost::filesystem::path p)
|
||||
Image::load(const std::filesystem::path& p)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
+2
-3
@@ -19,10 +19,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
|
||||
#include <Magick++.h>
|
||||
|
||||
namespace Image
|
||||
@@ -49,7 +48,7 @@ class Image
|
||||
|
||||
// input
|
||||
bool load(const std::vector<unsigned char>& rawData);
|
||||
bool load(boost::filesystem::path p);
|
||||
bool load(const std::filesystem::path& p);
|
||||
|
||||
Geometry getSize() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user