Skip to content

MongoDB default function deleted clang warning #4276

@aleks-f

Description

@aleks-f

Describe the bug
Compile warning

To Reproduce
Seen on CI macOS builds

Expected behavior
no warning

Logs

In file included from src/MongoDBTest.cpp:18:
/Users/runner/work/poco/poco/MongoDB/include/Poco/MongoDB/PoolableConnectionFactory.h:125:20: warning: explicitly defaulted move assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
        PooledConnection& operator=(PooledConnection&&) = default;
                          ^
/Users/runner/work/poco/poco/MongoDB/include/Poco/MongoDB/PoolableConnectionFactory.h:128:49: note: move assignment operator of 'PooledConnection' is implicitly deleted because field '_pool' is of reference type 'Poco::ObjectPool<Connection, Connection::Ptr> &' (aka 'ObjectPool<Poco::MongoDB::Connection, SharedPtr<Poco::MongoDB::Connection>> &')
        Poco::ObjectPool<Connection, Connection::Ptr>& _pool;
                                                     ^

Please add relevant environment information:

  • macOS
  • clang

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions