Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Implication of assign a value at function entry Pin
Richard MacCutchan6-Mar-18 9:37
mveRichard MacCutchan6-Mar-18 9:37 
GeneralRe: Implication of assign a value at function entry Pin
ForNow6-Mar-18 9:39
ForNow6-Mar-18 9:39 
QuestionRe: Implication of assign a value at function entry Pin
jeron16-Mar-18 9:50
jeron16-Mar-18 9:50 
AnswerRe: Implication of assign a value at function entry Pin
ForNow6-Mar-18 10:10
ForNow6-Mar-18 10:10 
GeneralRe: Implication of assign a value at function entry Pin
jeron16-Mar-18 10:35
jeron16-Mar-18 10:35 
GeneralRe: Implication of assign a value at function entry Pin
Richard MacCutchan6-Mar-18 10:47
mveRichard MacCutchan6-Mar-18 10:47 
GeneralRe: Implication of assign a value at function entry Pin
ForNow6-Mar-18 11:07
ForNow6-Mar-18 11:07 
GeneralRe: Implication of assign a value at function entry Pin
ForNow7-Mar-18 4:57
ForNow7-Mar-18 4:57 
GeneralRe: Implication of assign a value at function entry Pin
Richard MacCutchan7-Mar-18 5:02
mveRichard MacCutchan7-Mar-18 5:02 
AnswerRe: Implication of assign a value at function entry Pin
charlieg6-Mar-18 13:38
charlieg6-Mar-18 13:38 
PraiseRe: Implication of assign a value at function entry Pin
CPallini6-Mar-18 21:39
mveCPallini6-Mar-18 21:39 
Questionproblem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Tarun Jha6-Mar-18 2:31
Tarun Jha6-Mar-18 2:31 
AnswerRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Richard MacCutchan6-Mar-18 2:49
mveRichard MacCutchan6-Mar-18 2:49 
GeneralRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Tarun Jha6-Mar-18 3:38
Tarun Jha6-Mar-18 3:38 
AnswerRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Jochen Arndt6-Mar-18 2:58
professionalJochen Arndt6-Mar-18 2:58 
GeneralRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Tarun Jha6-Mar-18 3:34
Tarun Jha6-Mar-18 3:34 
GeneralRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Tarun Jha6-Mar-18 3:43
Tarun Jha6-Mar-18 3:43 
GeneralRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Jochen Arndt6-Mar-18 3:56
professionalJochen Arndt6-Mar-18 3:56 
GeneralRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Tarun Jha7-Mar-18 3:05
Tarun Jha7-Mar-18 3:05 
AnswerRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
CPallini6-Mar-18 3:29
mveCPallini6-Mar-18 3:29 
AnswerRe: problem with dynamic constructors, (cannot convert string literal to (char *) ). Pin
Joe Woodbury6-Mar-18 6:14
professionalJoe Woodbury6-Mar-18 6:14 
Questiondebugging a Boost serialization assertion Pin
Alexander Kindel5-Mar-18 21:56
Alexander Kindel5-Mar-18 21:56 
I'm trying to use Boost serialization in a C++ project, and my code has triggered the assertion on line 103 of this file. That's the line
BOOST_ASSERT(false);
in the bottom-most function in the file. What kinds of things can cause this failure?

The context is that I have a class called Board, whose serialize() overload starts by trying to serialize the member
std::array<Piece*, 16>m_whiteArmy
where Piece is another of my own classes. Trying to serialize m_whiteArmy is what triggers the assert. I've tried putting a breakpoint at the top of Piece's serialize() overload. The assertion triggers before it's reached.

I would include a compileable example, but when I've tried writing a toy program to replicate the problem, the toy program has worked. The two most suspicious things I can think of that my attempts at toy programs haven't replicated are that the Board object I'm trying to serialize is a global, and the project is spread over multiple files. Piece is a base class, and m_whiteArmy stores pointers to derived Piece objects, so maybe it matters which file I use
BOOST_CLASS_EXPORT_GUID
to register the derived classes in, and I've chosen the wrong one?

Maybe this is all irrelevant - I have no idea where to begin.

modified 6-Mar-18 4:21am.

AnswerRe: debugging a Boost serialization assertion Pin
Jochen Arndt5-Mar-18 22:32
professionalJochen Arndt5-Mar-18 22:32 
GeneralRe: debugging a Boost serialization assertion Pin
Alexander Kindel5-Mar-18 23:48
Alexander Kindel5-Mar-18 23:48 
QuestionDouble Click on ProgressBar Pin
Fedrer5-Mar-18 20:09
Fedrer5-Mar-18 20:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.