
All times are GMT +1. The time now is 05:27 PM.vBulletin ©2000 - 2016, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project.User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 Inteational License. For details and our forum data attribution, retention and privacy policy, see here Let's block ads! بخوانید...
ادامه مطلب
Hi all!This is a question regarding the gdb command 'info types', which can tell where a type is defined in source code.For example, in gdb if I type 'info types mytype' in the following program: Code: //main.cpp #include <iostream> struct mytype { const static bool value = false; }; int main() { //mytype tip; //if I remove this comment, it works std::cout << mytype::value << std::endl; retu 0; } gdb does not find any matching in the source for type 'mytype'.But if I remove comment in line 12, gdb finds the type definition and outputs this: Code: All types matching regular expression "mytype": File main.cpp: mytype; It see...
ادامه مطلب