Skip to content

Commit

Permalink
fix: std::move on DyLib::exception && doc
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-olivier committed May 24, 2021
1 parent 32dc467 commit 345a061
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions DyLib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* \file DyLib.hpp
* \brief Cross-platform Dynamic Library Loader
* \author Martin Olivier
* \version 1.4
* \version 1.4.1
*
* MIT License
* Copyright (c) 2021 Martin Olivier
Expand Down Expand Up @@ -76,7 +76,7 @@ class DyLib
protected:
const std::string m_error;
public:
explicit exception(std::string &&message) : m_error(message) {};
explicit exception(std::string &&message) : m_error(std::move(message)) {};
[[nodiscard]] const char *what() const noexcept override {return m_error.c_str();};
};

Expand Down Expand Up @@ -167,7 +167,7 @@ class DyLib
* If a dynamic library was already opened, it will be unload and replaced
*
* @param path path to the dynamic library to load
* @param ext use DyLib::OS_EXT to specify the os extension (optional parameter)
* @param ext use DyLib::extension to specify the os extension (optional parameter)
*/
void open(const char *path)
{
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DyLib - Dynamic Library Loader for C++
[![DyLib](https://img.shields.io/badge/DyLib-v1.4-blue.svg)](https://github.com/tocola/DyLib/releases/tag/v1.4)
[![DyLib](https://img.shields.io/badge/DyLib-v1.4.1-blue.svg)](https://github.com/tocola/DyLib/releases/tag/v1.4.1)
[![MIT license](https://img.shields.io/badge/License-MIT-orange.svg)](https://github.com/tocola/DyLib/blob/main/LICENSE)
[![CPP Version](https://img.shields.io/badge/C++-11/14/17/20-darkgreen.svg)](https://isocpp.org/)

Expand All @@ -10,7 +10,7 @@
[![workflow](https://github.com/tocola/DyLib/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/tocola/DyLib/actions/workflows/unit_tests.yml)
[![codecov](https://codecov.io/gh/tocola/DyLib/branch/main/graph/badge.svg?token=4V6A9B7PII)](https://codecov.io/gh/tocola/DyLib)

[![GitHub download](https://img.shields.io/github/downloads/tocola/DyLib/total?style=for-the-badge)](https://github.com/tocola/DyLib/releases/download/v1.4/DyLib.hpp)
[![GitHub download](https://img.shields.io/github/downloads/tocola/DyLib/total?style=for-the-badge)](https://github.com/tocola/DyLib/releases/download/v1.4.1/DyLib.hpp)

The goal of this C++ Library is to load dynamic libraries (.so, .dll, .dylib) and access its functions and global variables at runtime.

Expand All @@ -19,7 +19,7 @@ Works on `Linux`, `Windows`, `MacOS`

# Installation

Click [HERE](https://github.com/tocola/DyLib/releases/download/v1.4/DyLib.hpp) to download the DyLib header file
Click [HERE](https://github.com/tocola/DyLib/releases/download/v1.4.1/DyLib.hpp) to download the DyLib header file

# Documentation

Expand Down

0 comments on commit 345a061

Please sign in to comment.