V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zxyzxy12321
V2EX  ›  C

如何实现使用标准c++代替MSVC的__if_exists, 实现检测模版参数类中是否有某个成员函数.

  •  
  •   zxyzxy12321 · May 26, 2011 · 2842 views
    This topic created in 5462 days ago, the information mentioned may be changed or developed.
    需要实现判断从模版传入的类是否拥有指定成员函数, 实现元编程.
    1 replies    1970-01-01 08:00:00 +08:00
    saierdia
        1
    saierdia  
       Nov 19, 2011 via Android
    估计没办法,所以ms加了__if_exists
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:16 · PVG 15:16 · LAX 00:16 · JFK 03:16
    ♥ Do have faith in what you're doing.