main.cpp: In function 'int main()':
main.cpp:44:9: error: 'FixedAllocator' is not a template
FixedAllocator<int> a(1);
^~~~~~~~~~~~~~
main.cpp:44:32: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<int> a(1);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:51:29: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(2, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:55:9: error: 'FixedAllocator' is not a template
FixedAllocator<std::string> a(10);
^~~~~~~~~~~~~~
main.cpp:55:41: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<std::string> a(10);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:58:29: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(1, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:62:9: error: 'FixedAllocator' is not a template
FixedAllocator<std::string> a(100);
^~~~~~~~~~~~~~
main.cpp:62:42: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<std::string> a(100);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:65:29: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(1, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:69:9: error: 'FixedAllocator' is not a template
FixedAllocator<std::string> a(1);
^~~~~~~~~~~~~~
main.cpp:69:40: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<std::string> a(1);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:72:29: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(1, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:76:9: error: 'FixedAllocator' is not a template
FixedAllocator<std::string> a(1);
^~~~~~~~~~~~~~
main.cpp:76:40: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<std::string> a(1);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:82:30: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(51, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:86:9: error: 'FixedAllocator' is not a template
FixedAllocator<std::string> a(100);
^~~~~~~~~~~~~~
main.cpp:86:42: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<std::string> a(100);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:92:29: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(6, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:96:9: error: 'FixedAllocator' is not a template
FixedAllocator<std::string> a(100);
^~~~~~~~~~~~~~
main.cpp:96:42: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<std::string> a(100);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:102:30: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(11, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:106:9: error: 'FixedAllocator' is not a template
FixedAllocator<std::string> a(1000000);
^~~~~~~~~~~~~~
main.cpp:106:46: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<std::string> a(1000000);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:112:29: error: 'class FixedAllocator' has no member named 'InnerAllocator'; did you mean 'FixedAllocator'?
require_allocs(2, a.InnerAllocator().Allocated());
^~~~~~~~~~~~~~
FixedAllocator
main.cpp:116:9: error: 'FixedAllocator' is not a template
FixedAllocator<char> a(100);
^~~~~~~~~~~~~~
main.cpp:116:35: error: no matching function for call to 'FixedAllocator::FixedAllocator(int)'
FixedAllocator<char> a(100);
^
In file included from main.cpp:28:0:
fixed_allocator.h:3:3: note: candidate: FixedAllocator::FixedAllocator(size_t, size_t)
FixedAllocator(size_t chunk_size, size_t page_size) {
^~~~~~~~~~~~~~
fixed_allocator.h:3:3: note: candidate expects 2 arguments, 1 provided
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(const FixedAllocator&)
class FixedAllocator {
^~~~~~~~~~~~~~
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'const FixedAllocator&'
fixed_allocator.h:1:7: note: candidate: constexpr FixedAllocator::FixedAllocator(FixedAllocator&&)
fixed_allocator.h:1:7: note: no known conversion for argument 1 from 'int' to 'FixedAllocator&&'
main.cpp:119:41: error: no matching function for call to 'push_back(void*)'
store.push_back(a.Allocate());
^
In file included from /usr/include/c++/7/vector:64:0,
from main.cpp:2:
/usr/include/c++/7/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = char*; _Alloc = std::allocator<char*>; std::vector<_Tp, _Alloc>::value_type = char*] <near match>
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:939:7: note: conversion of argument 1 would be ill-formed:
main.cpp:119:39: error: invalid conversion from 'void*' to 'std::vector<char*>::value_type {aka char*}' [-fpermissive]
store.push_back(a.Allocate());
~~~~~~~~~~^~
In file included from /usr/include/c++/7/vector:64:0,
from main.cpp:2:
/usr/include/c++/7/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = char*; _Alloc = std::allocator<char*>; std::vector<_Tp, _Alloc>::value_type = char*] <near match>
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:953:7: note: conversion of argument 1 would be ill-formed:
main.cpp:119:39: error: invalid conversion from 'void*' to 'std::vector<char*>::value_type {aka char*}' [-fpermissive]
store.push_back(a.Allocate());
~~~~~~~~~~^~
|