8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
My program crashes when it renders the following view:
//crash1.cpp #include #define MY_HEADER "/root/mstch/include/mstch/mstch.hpp" #include MY_HEADER int main() { //original //std::string view{"{{#names}}Hi {{name}}!\n{{/names}}"}; //crash1 std::string view {"{{#names}}<b>{{count}}</b>: {{=}}\n{{/names}}"}; mstch::map context{ {"names", mstch::array{ mstch::map{{"name", std::string{"Chris"}}}, }} }; std::cout << mstch::render(view, context) << std::endl; return 0; }
//crash1.cpp #include
#define MY_HEADER "/root/mstch/include/mstch/mstch.hpp" #include MY_HEADER
int main() { //original //std::string view{"{{#names}}Hi {{name}}!\n{{/names}}"};
//crash1 std::string view {"{{#names}}<b>{{count}}</b>: {{=}}\n{{/names}}"};
mstch::map context{ {"names", mstch::array{ mstch::map{{"name", std::string{"Chris"}}}, }} };
std::cout << mstch::render(view, context) << std::endl;
return 0; }
clang++ -g -std=c++11 -Wall -Wextra -O3 crash1.cpp -rdynamic /root/mstch/src/libmstch.a ./a.out terminate called after throwing an instance of 'std::length_error' what(): basic_string::_S_create zsh: abort ./a.out
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
My program crashes when it renders the following view:
clang++ -g -std=c++11 -Wall -Wextra -O3 crash1.cpp -rdynamic /root/mstch/src/libmstch.a
./a.out
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
zsh: abort ./a.out
The text was updated successfully, but these errors were encountered: