use signed ints for STD C++20
This commit is contained in:
parent
ecc47f5320
commit
d01b46a87a
@ -11,7 +11,7 @@
|
|||||||
#include <ranges>
|
#include <ranges>
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
STD20Stream<T>::STD20Stream(const unsigned int ARRAY_SIZE, int device)
|
STD20Stream<T>::STD20Stream(const int ARRAY_SIZE, int device)
|
||||||
: array_size{ARRAY_SIZE}
|
: array_size{ARRAY_SIZE}
|
||||||
{
|
{
|
||||||
a = std::vector<T>(array_size);
|
a = std::vector<T>(array_size);
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class STD20Stream : public Stream<T>
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
// Size of arrays
|
// Size of arrays
|
||||||
unsigned int array_size;
|
int array_size;
|
||||||
|
|
||||||
// Device side pointers
|
// Device side pointers
|
||||||
std::vector<T> a;
|
std::vector<T> a;
|
||||||
@ -26,7 +26,7 @@ class STD20Stream : public Stream<T>
|
|||||||
std::vector<T> c;
|
std::vector<T> c;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
STD20Stream(const unsigned int, int);
|
STD20Stream(const int, int);
|
||||||
~STD20Stream() = default;
|
~STD20Stream() = default;
|
||||||
|
|
||||||
virtual void copy() override;
|
virtual void copy() override;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user