Skip to main content
10 events
when toggle format what by license comment
Dec 7, 2015 at 13:03 history edited Vlad from Moscow
edited tags
Jan 10, 2014 at 11:08 comment added codeling to clarify: both are about how to define a private static variable, yes. The problem is a bit different in both cases, but looking at the solution should give the correct idea in any case (here, that the type was missing, there, that the definition was in the header file but should have been in the cpp file). So technically, the question is actually not a real duplicate (it is not the exact same question), but close enough.
Jan 10, 2014 at 10:47 review Close votes
Feb 27, 2014 at 12:32
Jan 10, 2014 at 10:41 comment added Alec Teal It really is a duplicate.
Jan 10, 2014 at 10:33 vote accept tuxmania
Jan 10, 2014 at 10:25 answer added Vlad from Moscow timeline score: 5
Jan 10, 2014 at 10:22 comment added tuxmania @AlecTeal it is a duplicate? not really because the answer in your mentioned thread is not applicable since initializing a private static member outside of the class is not possible!
Jan 10, 2014 at 10:20 comment added juanchopanza You could remove the data members and make them local static variables inside getConnection().
Jan 10, 2014 at 10:19 comment added Alec Teal Duplicate: stackoverflow.com/questions/185844/… (taken from the list on the right, seriously!)
Jan 10, 2014 at 10:17 history asked tuxmania CC BY-SA 3.0