Skip to content

Commit

Permalink
[EN-7412] Implement DXFeedConnect sample
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyKalin committed Sep 5, 2023
1 parent 49c77cb commit f4728f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/dxfeed_graal_cpp_api/internal/utils/TimeFormat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ struct DXFCPP_EXPORT TimeFormat {
data_[index] = entry;
}

void add(const Entry::KeyType &key, const Entry::ValueType &value) {
void add(const typename Entry::KeyType &key, const typename Entry::ValueType &value) {
add({key, value});
}

void clear() noexcept {
data_.swap({maxSize, Entry::STUB});
}

template <typename Key> const Entry &get(const Key &key) const noexcept {
auto index = static_cast<std::size_t>(key) % maxSize;

Expand Down

0 comments on commit f4728f8

Please sign in to comment.