Skip to content

Commit

Permalink
Removing using namespace (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
matajoh authored Oct 5, 2021
1 parent fd35df5 commit 9329797
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.1
1.5.2
2 changes: 0 additions & 2 deletions include/npy/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include <iostream>
#include <vector>

using namespace std;

namespace npy
{
/** Enumeration which represents a type of endianness */
Expand Down
2 changes: 0 additions & 2 deletions include/npy/npy.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

#include "core.h"

using namespace std;

const int STATIC_HEADER_LENGTH = 10;

namespace npy
Expand Down
2 changes: 0 additions & 2 deletions include/npy/npz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion src/memstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9329797

Please sign in to comment.