-
Notifications
You must be signed in to change notification settings - Fork 28
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
Unable to build: use of deleted function #14
Comments
I can confirm this is still the case some years later: git clone https://github.com/goldsborough/lru-cache
cd lru-cache
git submodule update --init
cmake . -B build
cd build
make lowercase Results in:
This, on a (very) recent Debian bookworm, but I can reproduce this easily in a Debian Buster (from 2019). |
I encountered this issue in my own use of the LRU cache. The problem isn't in the LRU code per se, but in the underlying classes. In my case I was attempting to use the code in a Qt based application. My cache was defined as:
This build fine on Ubuntu 24.04 and 22.04, but not 20.04. Researching a little it showed the problem is likely caused by a missing move constructor, which makes sense given the older libraries in 20.04. I changed the key from QString to std::sting and everything built fine. I haven't looked at the provided example code, but I wouldn't be surprised if it's something similar. |
Looks like a great thing but unfortunately I cannot build it:
I tried to force C++17 and C++14 in CMakeLists.txt but was not helpful
My compiler:
Let me known what else. I would be happy to assist in testing.
The text was updated successfully, but these errors were encountered: