Selaa lähdekoodia

fix: dont duplicate symbol(s)

Sam Jaffe 2 vuotta sitten
vanhempi
commit
36cebc3973
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      include/serializer/jsonizer.tpp

+ 2 - 2
include/serializer/jsonizer.tpp

@@ -23,13 +23,13 @@
 
 namespace serializer {
 
-Jsonizer::Jsonizer() : p_cache(std::make_shared<SharedCache>()) {}
+inline Jsonizer::Jsonizer() : p_cache(std::make_shared<SharedCache>()) {}
 /**
  * @brief Construct a jsonizer with an externally owned cache
  * @param cache A shared_ptr to a data cache. Cannot be null
  * @throws std::logic_error if cache == nullptr
  */
-Jsonizer::Jsonizer(std::shared_ptr<SharedCache> cache) : p_cache(cache) {
+inline Jsonizer::Jsonizer(std::shared_ptr<SharedCache> cache) : p_cache(cache) {
   expects(p_cache != nullptr);
 }