diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b91ceb..10647b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [2021-10-05 - Version 1.5.2](https://github.com/matajoh/libnpy/releases/tag/v1.5.2) + +Removing `using namespace std` to simplify library use + ## [2021-08-26 - Version 1.5.1](https://github.com/matajoh/libnpy/releases/tag/v1.5.1) Improvements: diff --git a/VERSION b/VERSION index 8e03717..a73b432 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.1 \ No newline at end of file +1.5.2 \ No newline at end of file diff --git a/include/npy/core.h b/include/npy/core.h index a88db5a..81238ec 100644 --- a/include/npy/core.h +++ b/include/npy/core.h @@ -16,8 +16,6 @@ #include #include -using namespace std; - namespace npy { /** Enumeration which represents a type of endianness */ diff --git a/include/npy/npy.h b/include/npy/npy.h index cd0983d..0420148 100644 --- a/include/npy/npy.h +++ b/include/npy/npy.h @@ -25,8 +25,6 @@ #include "core.h" -using namespace std; - const int STATIC_HEADER_LENGTH = 10; namespace npy diff --git a/include/npy/npz.h b/include/npy/npz.h index f459535..ed87b9a 100644 --- a/include/npy/npz.h +++ b/include/npy/npz.h @@ -26,8 +26,6 @@ #include "npy.h" #include "tensor.h" -using namespace std; - namespace npy { /** Enumeration indicating the compression method to use for data in the NPZ archive. */ diff --git a/src/memstream.cpp b/src/memstream.cpp index 1f04297..77ab0f3 100644 --- a/src/memstream.cpp +++ b/src/memstream.cpp @@ -91,7 +91,7 @@ membuf::pos_type membuf::seekoff(membuf::off_type off, std::ios_base::seekdir wa return result; } -membuf::pos_type membuf::seekpos(membuf::pos_type pos, ios_base::openmode which) +membuf::pos_type membuf::seekpos(membuf::pos_type pos, std::ios_base::openmode which) { membuf::pos_type result(membuf::off_type(-1)); if (which & std::ios_base::in)