|
|
|
|
|
by tialaramex
1658 days ago
|
|
I understand that for C++ programmers "That's possible" versus "That's a good idea" is a distinction without a difference, however for the rest of us the fact you can use templates as much as you like in, say, Windows drivers, does not magically mean it's a good idea to write complex templated code in Windows drivers. The constraints in /kernel like forbidding exceptions are because otherwise they (Microsoft) need to do a bunch of extra work to support your bad idea. But your use of templates has no impact on their work, so knock yourself out adding as much complexity as you like this way. |
|
https://www.parasoft.com/blog/breaking-down-the-autosar-c14-...
But what do they state specifically? Ah, right.
> "The document allows in particular the usage of dynamic memory, exceptions, templates, inheritance and virtual functions."
https://www.autosar.org/fileadmin/user_upload/standards/adap...