It create huge amount of duplicate symbols.
Last active
December 17, 2015 01:49
-
-
Save mantognini/5530703 to your computer and use it in GitHub Desktop.
Why adding `template class std::basic_string<int>;` in String.hpp doesn't work ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/SFML/System/String.hpp b/include/SFML/System/String.hpp | |
index 080a809..81e84c4 100644 | |
--- a/include/SFML/System/String.hpp | |
+++ b/include/SFML/System/String.hpp | |
@@ -33,6 +33,9 @@ | |
#include <string> | |
+template class std::basic_string<sf::Uint32>; | |
+ | |
+ | |
namespace sf | |
{ | |
//////////////////////////////////////////////////////////// | |
diff --git a/src/SFML/System/String.cpp b/src/SFML/System/String.cpp | |
index b4ee135..9a529b7 100644 | |
--- a/src/SFML/System/String.cpp | |
+++ b/src/SFML/System/String.cpp | |
@@ -30,6 +30,8 @@ | |
#include <iterator> | |
#include <cstring> | |
+extern template class std::basic_string<sf::Uint32>; | |
+ | |
namespace sf | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment