Adding types to the std namespace

后端 未结 7 843
孤城傲影
孤城傲影 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.

提交回复
热议问题