Originally Posted by
CornedBee
What compiler did your coworker use? It may well be that <cassert> was indirectly included for him, and you're reaping the rewards for his impreciseness in header use.
adding #include <cassert> to input.h still gives me assert errors
Code:
input.h: In member function 'float dataset_buf::operator()(int, int, int) const':
input.h:73: error: 'assert' was not declared in this scope
input.h: In member function 'float& dataset_buf::operator()(int, int, int)':
input.h:77: error: 'assert' was not declared in this scope
input.h: At global scope:
input.h:97: error: expected ',' or '...' before '<' token
input.h:97: error: ISO C++ forbids declaration of 'valarray' with no type
input.h:107: error: ISO C++ forbids declaration of 'valarray' with no type
input.h:107: error: expected ';' before '<' token
input.h: In constructor 'quantizer::quantizer(int)':
input.h:97: error: class 'quantizer' does not have any field named 'v'
input.h:97: error: 'v' was not declared in this scope
input.h: In member function 'int quantizer::nq() const':
input.h:102: error: 'v' was not declared in this scope
input.h: In member function 'int quantizer::operator()(float) const':
input.h:116: error: 'v' was not declared in this scope
input.h: In member function 'void dataset_loader::derive_radon_blob_summary(const std::string&)':
input.h:299: error: 'assert' was not declared in this scope
input.h: At global scope:
input.h:519: error: expected ',' or '...' before '<' token
input.h:519: error: ISO C++ forbids declaration of 'valarray' with no type
input.h:545: error: ISO C++ forbids declaration of 'valarray' with no type
...