summaryrefslogtreecommitdiff
path: root/modules/codec/c++/id_map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++/id_map.hpp')
-rw-r--r--modules/codec/c++/id_map.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/codec/c++/id_map.hpp b/modules/codec/c++/id_map.hpp
index 18a331f..56becf0 100644
--- a/modules/codec/c++/id_map.hpp
+++ b/modules/codec/c++/id_map.hpp
@@ -19,7 +19,7 @@ private:
/**
* Container which stores the primary data
*/
- std::vector<data<T,Encoding,Storage>> data_;
+ std::vector<data<T,Encoding>> data_;
/**
* Container which tracks free'd/fragmented elements within the
* main container
@@ -65,7 +65,7 @@ public:
* Inserts an element into the container and returns either an id on success
* or an error on failure.
*/
- error_or<id<T>> insert(data<T,Encoding,Storage> val) noexcept {
+ error_or<id<T>> insert(data<T,Encoding> val) noexcept {
/// @todo Fix size_t and id base type
if(free_ids_.empty()){
try {
@@ -90,7 +90,7 @@ public:
/**
* Insert as data with associated id. This can fail when it doesn't adhere to the standard approach.
*/
- error_or<void> insert_as(data<T,Encoding,Storage> val, id<T> id) noexcept {
+ error_or<void> insert_as(data<T,Encoding> val, id<T> id) noexcept {
if(free_ids_.empty()){
if( id.get_value() != data_.size() ){
return make_error<err::invalid_state>("Can't insert_as with provided ID. Doesn't match.");
@@ -178,7 +178,7 @@ public:
* Returns an error on failure and returns
* a value pointer on success.
*/
- error_or<data<T,Encoding,Storage>*> find(const id<T>& val){
+ error_or<data<T,Encoding>*> find(const id<T>& val){
if(val.get_value() >= data_.size()){
return make_error<err::not_found>("ID is too large");
}