In file included from main.cpp:2:0:
SmartPointer.hpp:7:23: error: 'GameObject' does not name a type
bool operator> (const GameObject& a, const GameObject& b) {
^~~~~~~~~~
SmartPointer.hpp:7:44: error: 'GameObject' does not name a type
bool operator> (const GameObject& a, const GameObject& b) {
^~~~~~~~~~
SmartPointer.hpp:7:57: error: 'bool operator>(const int&, const int&)' must have an argument of class or enumerated type
bool operator> (const GameObject& a, const GameObject& b) {
^
SmartPointer.hpp:24:17: error: 'ObjectId' has not been declared
void Insert(ObjectId id, string name, size_t x, size_t y);
^~~~~~~~
SmartPointer.hpp:24:30: error: 'string' has not been declared
void Insert(ObjectId id, string name, size_t x, size_t y);
^~~~~~
SmartPointer.hpp:25:17: error: 'ObjectId' has not been declared
void Remove(ObjectId id);
^~~~~~~~
SmartPointer.hpp:26:5: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> DataByName(string name) const;
^~~~~~
perror
SmartPointer.hpp:27:5: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> DataByPosition(size_t x, size_t y) const;
^~~~~~
perror
SmartPointer.hpp:28:5: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> Data() const;
^~~~~~
perror
SmartPointer.hpp:30:5: error: 'map' does not name a type
map<ObjectId, GameObject, greater<ObjectId>> m;
^~~
SmartPointer.hpp:33:27: error: variable or field 'Insert' declared void
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^~~~~~~~
SmartPointer.hpp:33:27: error: 'ObjectId' was not declared in this scope
SmartPointer.hpp:33:40: error: 'string' was not declared in this scope
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^~~~~~
SmartPointer.hpp:33:40: note: suggested alternatives:
In file included from /usr/include/c++/7/string:39:0,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from SmartPointer.hpp:1,
from main.cpp:2:
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
In file included from main.cpp:2:0:
SmartPointer.hpp:33:60: error: expected primary-expression before 'x'
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^
SmartPointer.hpp:33:70: error: expected primary-expression before 'y'
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^
SmartPointer.hpp:37:27: error: variable or field 'Remove' declared void
void GameDatabase::Remove(ObjectId id) {
^~~~~~~~
SmartPointer.hpp:37:27: error: 'ObjectId' was not declared in this scope
SmartPointer.hpp:41:1: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> GameDatabase::DataByName(string name) const {
^~~~~~
perror
SmartPointer.hpp:51:1: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> GameDatabase::DataByPosition(size_t x, size_t y) const {
^~~~~~
perror
SmartPointer.hpp:61:1: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> GameDatabase::Data() const {
^~~~~~
perror
In file included from Test_SmartPointer.hpp:3:0,
from main.cpp:3:
SmartPointer.hpp:7:23: error: 'GameObject' does not name a type
bool operator> (const GameObject& a, const GameObject& b) {
^~~~~~~~~~
SmartPointer.hpp:7:44: error: 'GameObject' does not name a type
bool operator> (const GameObject& a, const GameObject& b) {
^~~~~~~~~~
SmartPointer.hpp:7:57: error: 'bool operator>(const int&, const int&)' must have an argument of class or enumerated type
bool operator> (const GameObject& a, const GameObject& b) {
^
SmartPointer.hpp:12:7: error: redefinition of 'class DereferenceCompare<Tp, Compare>'
class DereferenceCompare {
^~~~~~~~~~~~~~~~~~
In file included from main.cpp:2:0:
SmartPointer.hpp:12:7: note: previous definition of 'class DereferenceCompare<Tp, Compare>'
class DereferenceCompare {
^~~~~~~~~~~~~~~~~~
In file included from Test_SmartPointer.hpp:3:0,
from main.cpp:3:
SmartPointer.hpp:21:7: error: redefinition of 'class GameDatabase'
class GameDatabase {
^~~~~~~~~~~~
In file included from main.cpp:2:0:
SmartPointer.hpp:21:7: note: previous definition of 'class GameDatabase'
class GameDatabase {
^~~~~~~~~~~~
In file included from Test_SmartPointer.hpp:3:0,
from main.cpp:3:
SmartPointer.hpp:33:27: error: variable or field 'Insert' declared void
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^~~~~~~~
SmartPointer.hpp:33:27: error: 'ObjectId' was not declared in this scope
SmartPointer.hpp:33:40: error: 'string' was not declared in this scope
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^~~~~~
SmartPointer.hpp:33:40: note: suggested alternatives:
In file included from /usr/include/c++/7/string:39:0,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from SmartPointer.hpp:1,
from main.cpp:2:
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
/usr/include/c++/7/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
In file included from Test_SmartPointer.hpp:3:0,
from main.cpp:3:
SmartPointer.hpp:33:60: error: expected primary-expression before 'x'
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^
SmartPointer.hpp:33:70: error: expected primary-expression before 'y'
void GameDatabase::Insert(ObjectId id, string name, size_t x, size_t y) {
^
SmartPointer.hpp:37:27: error: variable or field 'Remove' declared void
void GameDatabase::Remove(ObjectId id) {
^~~~~~~~
SmartPointer.hpp:37:27: error: 'ObjectId' was not declared in this scope
SmartPointer.hpp:41:1: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> GameDatabase::DataByName(string name) const {
^~~~~~
perror
SmartPointer.hpp:51:1: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> GameDatabase::DataByPosition(size_t x, size_t y) const {
^~~~~~
perror
SmartPointer.hpp:61:1: error: 'vector' does not name a type; did you mean 'perror'?
vector<GameObject> GameDatabase::Data() const {
^~~~~~
perror
In file included from main.cpp:3:0:
Test_SmartPointer.hpp:10:17: error: 'smart_pointer' is not a namespace-name
using namespace smart_pointer;
^~~~~~~~~~~~~
Test_SmartPointer.hpp:10:30: error: expected namespace-name before ';' token
using namespace smart_pointer;
^
Test_SmartPointer.hpp:11:30: error: 'SmartPointer' does not name a type
using SmartPointer__type_t = SmartPointer<float, std::allocator<float>>;
^~~~~~~~~~~~
Test_SmartPointer.hpp:12:38: error: 'SmartPointer' does not name a type
using SmartPointer__another_type_t = SmartPointer<uint64_t, std::allocator<uint64_t>>;
^~~~~~~~~~~~
Test_SmartPointer.hpp: In function 'std::enable_if_t<std::is_floating_point<_Tp>::value> __stress_tests__SmartPointer_operator_star(const string&)':
Test_SmartPointer.hpp:17:5: error: there are no arguments to 'TEST_BLOCK' that depend on a template parameter, so a declaration of 'TEST_BLOCK' must be available [-fpermissive]
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*() const") {
^~~~~~~~~~
Test_SmartPointer.hpp:17:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
Test_SmartPointer.hpp:17:73: error: expected ';' before '{' token
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*() const") {
^
Test_SmartPointer.hpp:33:5: error: there are no arguments to 'TEST_BLOCK' that depend on a template parameter, so a declaration of 'TEST_BLOCK' must be available [-fpermissive]
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*()") {
^~~~~~~~~~
Test_SmartPointer.hpp:33:67: error: expected ';' before '{' token
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*()") {
^
Test_SmartPointer.hpp: In function 'std::enable_if_t<std::is_integral<_Tp>::value> __stress_tests__SmartPointer_operator_star(const string&)':
Test_SmartPointer.hpp:55:5: error: there are no arguments to 'TEST_BLOCK' that depend on a template parameter, so a declaration of 'TEST_BLOCK' must be available [-fpermissive]
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*() const") {
^~~~~~~~~~
Test_SmartPointer.hpp:55:73: error: expected ';' before '{' token
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*() const") {
^
In file included from main.cpp:3:0:
Test_SmartPointer.hpp:71:5: error: there are no arguments to 'TEST_BLOCK' that depend on a template parameter, so a declaration of 'TEST_BLOCK' must be available [-fpermissive]
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*()") {
^~~~~~~~~~
Test_SmartPointer.hpp:71:67: error: expected ';' before '{' token
TEST_BLOCK("[stress] SmartPointer[non-nullptr]::operator*()") {
^
Test_SmartPointer.hpp: At global scope:
Test_SmartPointer.hpp:97:19: error: expected constructor, destructor, or type conversion before '(' token
DEFINE_CLASS_TESTS(SmartPointer__type_t) {
^
main.cpp: In function 'int main()':
main.cpp:6:24: error: 'SmartPointer__type_t' was not declared in this scope
EXECUTE_CLASS_TEST(SmartPointer__type_t);
^~~~~~~~~~~~~~~~~~~~
main.cpp:6:5: error: 'EXECUTE_CLASS_TEST' was not declared in this scope
EXECUTE_CLASS_TEST(SmartPointer__type_t);
^~~~~~~~~~~~~~~~~~
main.cpp:7:7: error: 'cout' is not a member of 'std'
std::cout << 1 << std::endl;
^~~~
main.cpp:7:7: note: suggested alternative: 'cbrt'
std::cout << 1 << std::endl;
^~~~
cbrt
main.cpp:7:25: error: 'endl' is not a member of 'std'
std::cout << 1 << std::endl;
^~~~
main.cpp:7:25: note: suggested alternative: 'end'
std::cout << 1 << std::endl;
^~~~
end
|