Skip to content

Commit 0d2ca47

Browse files
committed
move template instatiation to cpp file
1 parent 109463b commit 0d2ca47

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/FirebaseArduino.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
#include "FirebaseArduino.h"
1818

19+
// This is needed to compile std::string on esp8266.
20+
template class std::basic_string<char>;
21+
1922
void FirebaseArduino::begin(const String& host, const String& auth) {
2023
http_.reset(FirebaseHttpClient::create());
2124
http_->setReuseConnection(true);

src/FirebaseArduino.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#define FIREBASE_ARDUINO_H
1919

2020
#include <string>
21-
// This is needed to compile std::string on esp8266.
22-
template class std::basic_string<char>;
2321

2422
#include "Firebase.h"
2523
#include "FirebaseObject.h"

src/SerialTransceiver.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#include <string>
2-
// This is needed to compile std::string on esp8266.
3-
template class std::basic_string<char>;
42

53
#include "modem/SerialTransceiver.h"
64
// Bring them into the base namespace for easier use in arduino ide.

0 commit comments

Comments
 (0)