MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/hh0cjp/html_write_html_documents_using_c_templates/fw8m22n/?context=3
r/cpp • u/csb06 • Jun 27 '20
27 comments sorted by
View all comments
55
This, frankly, looks easier than writing HTML directly... Plus free error checking... Too bad template error messages are horrendously ugly.
1 u/csb06 Jun 28 '20 Like u/AirAKose said, static_asserts with custom error messages help a lot. I’ve found the error output isn’t too bad, since the static_assert usually gets triggered pretty immediately and stops compilation. Concepts should help even more.
1
Like u/AirAKose said, static_asserts with custom error messages help a lot. I’ve found the error output isn’t too bad, since the static_assert usually gets triggered pretty immediately and stops compilation. Concepts should help even more.
55
u/looncraz Jun 27 '20
This, frankly, looks easier than writing HTML directly... Plus free error checking... Too bad template error messages are horrendously ugly.