Browse Source

copy ctors should have noexcept

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
8781e63dfe
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      libswan/include/swan/OS.h
  2. 1
    1
      libswan/src/OS.cc

+ 1
- 1
libswan/include/swan/OS.h View File

@@ -13,7 +13,7 @@ class Dynlib {
public:
Dynlib(const std::string &path);
Dynlib(const Dynlib &) = delete;
Dynlib(Dynlib &&dl);
Dynlib(Dynlib &&dl) noexcept;
~Dynlib();

template<typename T> T get(const std::string &name) { return (T)getVoid(name); }

+ 1
- 1
libswan/src/OS.cc View File

@@ -21,7 +21,7 @@ Dynlib::Dynlib(const std::string &path) {
}
}

Dynlib::Dynlib(Dynlib &&dl) {
Dynlib::Dynlib(Dynlib &&dl) noexcept {
handle_ = dl.handle_;
dl.handle_ = nullptr;
}

Loading…
Cancel
Save