forked from Lainports/freebsd-ports
/wrkdirs/usr/ports/sysutils/fusefs-encfs/work/encfs-1.9.5/encfs/NullCipher.cpp:81:36: error: no matching constructor for initialization of 'std::shared_ptr<AbstractCipherKey>'
std::shared_ptr<AbstractCipherKey> gNullKey(new NullKey(), NullDestructor());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Solution was taken from eacf34a1cf
11 lines
438 B
C++
11 lines
438 B
C++
--- encfs/NullCipher.cpp.orig 2022-05-14 16:04:54 UTC
|
|
+++ encfs/NullCipher.cpp
|
|
@@ -76,7 +76,7 @@ class NullDestructor {
|
|
NullDestructor &operator=(const NullDestructor &) = delete; // copy assignment
|
|
NullDestructor& operator=(NullDestructor&& other) = delete; // move assignment
|
|
|
|
- void operator()(NullKey *&) {}
|
|
+ void operator()(NullKey *) {}
|
|
};
|
|
std::shared_ptr<AbstractCipherKey> gNullKey(new NullKey(), NullDestructor());
|
|
|