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

error: definition of implicit copy constructor for 'app' is deprecated (OSX) #538

Open
ClausKlein opened this issue Apr 9, 2022 · 0 comments

Comments

@ClausKlein
Copy link

ClausKlein commented Apr 9, 2022

Expected Behavior

No errors and no warnings

Actual Behavior

bash-3.2$ cmake -B build -G Ninja  
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/clausklein/Workspace/cpp/boost-ext/di/build
bash-3.2$ cd build
bash-3.2$ ninja
[200/314] Building CXX object example/CMakeFiles/example.bindings.dir/bindings.cpp.o
FAILED: example/CMakeFiles/example.bindings.dir/bindings.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -I/Users/clausklein/Workspace/cpp/boost-ext/di/example/.. -I/Users/clausklein/Workspace/cpp/boost-ext/di/include -I/Users/clausklein/Workspace/cpp/boost-ext/di/extension/include -std=c++1y -fno-exceptions -pedantic -pedantic-errors -Wall -Wextra -Werror -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -MD -MT example/CMakeFiles/example.bindings.dir/bindings.cpp.o -MF example/CMakeFiles/example.bindings.dir/bindings.cpp.o.d -o example/CMakeFiles/example.bindings.dir/bindings.cpp.o -c /Users/clausklein/Workspace/cpp/boost-ext/di/example/bindings.cpp
/Users/clausklein/Workspace/cpp/boost-ext/di/example/bindings.cpp:58:8: error: definition of implicit copy constructor for 'app' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
  app& operator=(const app&) = delete;
       ^
/Users/clausklein/Workspace/cpp/boost-ext/di/example/bindings.cpp:88:22: note: in implicit copy constructor for 'app' first required here
  auto service_app = injector.create<app>();
                     ^
1 error generated.
[213/314] Building CXX object test/CMakeFiles/test.ft_di_bind.dir/ft/di_bind.cpp.o
ninja: build stopped: subcommand failed.
bash-3.2$ git status
On branch cpp14
Your branch is up to date with 'origin/cpp14'.
bash-3.2$

Specifications

  • Version: HEAD -> cpp14
  • Platform: OSX
  • Subsystem:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant