Skip to content

Commit 9329797

Browse files
authored
Removing using namespace (#28)
1 parent fd35df5 commit 9329797

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2021-10-05 - Version 1.5.2](https://github.com/matajoh/libnpy/releases/tag/v1.5.2)
4+
5+
Removing `using namespace std` to simplify library use
6+
37
## [2021-08-26 - Version 1.5.1](https://github.com/matajoh/libnpy/releases/tag/v1.5.1)
48

59
Improvements:

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.1
1+
1.5.2

include/npy/core.h

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include <iostream>
1717
#include <vector>
1818

19-
using namespace std;
20-
2119
namespace npy
2220
{
2321
/** Enumeration which represents a type of endianness */

include/npy/npy.h

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
#include "core.h"
2727

28-
using namespace std;
29-
3028
const int STATIC_HEADER_LENGTH = 10;
3129

3230
namespace npy

include/npy/npz.h

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
#include "npy.h"
2727
#include "tensor.h"
2828

29-
using namespace std;
30-
3129
namespace npy
3230
{
3331
/** Enumeration indicating the compression method to use for data in the NPZ archive. */

src/memstream.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ membuf::pos_type membuf::seekoff(membuf::off_type off, std::ios_base::seekdir wa
9191
return result;
9292
}
9393

94-
membuf::pos_type membuf::seekpos(membuf::pos_type pos, ios_base::openmode which)
94+
membuf::pos_type membuf::seekpos(membuf::pos_type pos, std::ios_base::openmode which)
9595
{
9696
membuf::pos_type result(membuf::off_type(-1));
9797
if (which & std::ios_base::in)

0 commit comments

Comments
 (0)