Debugging data in 'anonymous namespaces' (C++)

后端 未结 2 655
眼角桃花
眼角桃花 2020-12-30 06:24

Recently, I got a crash dump file from a customer. I could track the problem down to a class that could contain incorrect data, but I only got a void-pointer to the class,

2条回答
  •  [愿得一人]
    2020-12-30 07:05

    This is mentioned in MSDN. It doesn't look like there's a nice solution within the Watch window (you can get the decorated name of your class from a listing I guess).

    Your "silly-named namespace" idea would work okay, you could also just declare an identical class with a silly name and cast to that type instead.

提交回复
热议问题