Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor irritation -Wdefaulted-function-deleted warning... #65

Closed
oschonrock opened this issue Nov 22, 2019 · 1 comment
Closed

minor irritation -Wdefaulted-function-deleted warning... #65

oschonrock opened this issue Nov 22, 2019 · 1 comment
Assignees
Labels

Comments

@oschonrock
Copy link

clang++ --version
clang version 8.0.0-3 (tags/RELEASE_800/final)
Target: x86_64-pc-linux-gnu

gives these with latest master.

clang++ -O2  -Wall -Wshadow -std=c++17 -o build/corr corr.cpp -lpthread
In file included from corr.cpp:3:
/home/oliver/c/leet/include/csv.hpp:4151:9: warning: explicitly defaulted move constructor is implicitly deleted [-Wdefaulted-function-deleted]
        CSVReader(CSVReader&&) = default;     // Move constructor
        ^
/home/oliver/c/leet/include/csv.hpp:4302:20: note: move constructor of 'CSVReader' is implicitly deleted because field 'feed_lock' has a deleted move constructor
        std::mutex feed_lock;                /**< Allow only one worker to write */
                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/std_mutex.h:97:5: note: 'mutex' has been explicitly marked deleted here
    mutex(const mutex&) = delete;
    ^
In file included from corr.cpp:3:
/home/oliver/c/leet/include/csv.hpp:4153:20: warning: explicitly defaulted move assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
        CSVReader& operator=(CSVReader&& other) = default;
                   ^
/home/oliver/c/leet/include/csv.hpp:4302:20: note: move assignment operator of 'CSVReader' is implicitly deleted because field 'feed_lock' has a deleted move assignment operator
        std::mutex feed_lock;                /**< Allow only one worker to write */
                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/std_mutex.h:98:12: note: 'operator=' has been explicitly marked deleted here
    mutex& operator=(const mutex&) = delete;
                                                                                                                    

-Wno-defaulted-function-deleted suppresses them obviously.

@vincentlaucsb
Copy link
Owner

Fixed by PR #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants