Skip to content

Commit f06e39f

Browse files
committed
std::make_unique() is c++14 material... sigh.
1 parent 65b9ce7 commit f06e39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librawspeed/common/Threading.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ThreadSafeVector : protected std::vector<T>
5959
public:
6060
ThreadSafeVector()
6161
{
62-
mutex = std::make_unique<pthread_mutex_t>();
62+
mutex = std::unique_ptr<pthread_mutex_t>(new pthread_mutex_t());
6363
pthread_mutex_init(mutex.get(), nullptr);
6464
}
6565

0 commit comments

Comments
 (0)