Timeline for C++ I have a function used in all my headers
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 21, 2013 at 18:46 | vote | accept | ChasingLogic | ||
| Nov 21, 2013 at 18:43 | vote | accept | ChasingLogic | ||
| Nov 21, 2013 at 18:45 | |||||
| Nov 21, 2013 at 18:02 | answer | added | James | timeline score: 0 | |
| Nov 21, 2013 at 17:59 | answer | added | IInspectable | timeline score: 2 | |
| Nov 21, 2013 at 17:44 | answer | added | Md. Al-Amin | timeline score: 0 | |
| Nov 21, 2013 at 17:44 | answer | added | NotMikeDean | timeline score: 0 | |
| Nov 21, 2013 at 17:43 | answer | added | Nemanja Boric | timeline score: 5 | |
| Nov 21, 2013 at 17:41 | comment | added | Taylor Brandstetter | If you have a function that's the same across all header files, just put it in a single header file which is included by the other header files. And yes, you can define it in any source file, although doing so in main.cpp would be unconventional. Generally if you have a "foo.h", the functions contained therein are defined in a "foo.cpp". | |
| Nov 21, 2013 at 17:41 | comment | added | user229044♦ | ... Did you try it? Do you get any errors? | |
| Nov 21, 2013 at 17:39 | history | asked | ChasingLogic | CC BY-SA 3.0 |