diff options
Diffstat (limited to 'src/support/file.h')
-rw-r--r-- | src/support/file.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/support/file.h b/src/support/file.h index e9c35f5f3..5e464d6c1 100644 --- a/src/support/file.h +++ b/src/support/file.h @@ -25,9 +25,14 @@ #include <iostream> #include <string> #include <utility> +#include <vector> namespace wasm { -std::string read_file(const std::string &filename, bool debug); +template <typename T> +T read_file(const std::string &filename, bool debug); +// Declare the valid explicit specializations. +extern template std::string read_file<>(const std::string &, bool); +extern template std::vector<char> read_file<>(const std::string &, bool); class Output { public: @@ -48,4 +53,4 @@ class Output { }; } -#endif // wasm_support_file_h +#endif // wasm_support_file_h |