Adding types to the std namespace

后端 未结 7 837
孤城傲影
孤城傲影 2020-11-28 15:34

Is it acceptable to add types to the std namespace. For example, I want a TCHAR-friendly string, so is the following acceptable?

#include 

        
相关标签:
7条回答
  • 2020-11-28 16:33

    This is an interesting question because it's completely subjective to the project and the engineers' accepted coding standards.

    For a single programmer, why not... just be careful.

    For teams, make a standard...

    For a cross-platform project, hell yeah.

    Otherwise, nawdawg.

    0 讨论(0)
提交回复
热议问题