|
|
|
|
|
by Matthias247
3286 days ago
|
|
Some things that are not so nice about templates: - dozens to hundreds of compiler error lines for a single error, where it's hard to find out what the real problem is (IDEs often point to the wrong line) - Code is hard to follow. E.g. try to figure out from boost asio source code which code is actually used if if you do a async_read(socket). I personally gave up after the second level of template substitutions, and have only a chance to follow the execution path in the debugger. - Besides goto definition also other IDE features do not work really well with templates. E.g. no autocompletions for constructors with make_shared. |
|