Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionRe: Double Click on ProgressBar Pin
Maciej Los5-Mar-18 20:24
mveMaciej Los5-Mar-18 20:24 
AnswerRe: Double Click on ProgressBar Pin
Fedrer5-Mar-18 20:42
Fedrer5-Mar-18 20:42 
QuestionRe: Double Click on ProgressBar Pin
David Crow6-Mar-18 2:24
David Crow6-Mar-18 2:24 
AnswerRe: Double Click on ProgressBar Pin
Victor Nijegorodov5-Mar-18 21:16
Victor Nijegorodov5-Mar-18 21:16 
QuestionHow to add tabs to CView Class? Pin
Sampath5794-Mar-18 22:42
Sampath5794-Mar-18 22:42 
AnswerRe: How to add tabs to CView Class? Pin
Victor Nijegorodov5-Mar-18 5:13
Victor Nijegorodov5-Mar-18 5:13 
GeneralRe: How to add tabs to CView Class? Pin
Sampath5795-Mar-18 5:41
Sampath5795-Mar-18 5:41 
GeneralRe: How to add tabs to CView Class? Pin
jeron15-Mar-18 9:31
jeron15-Mar-18 9:31 
GeneralRe: How to add tabs to CView Class? Pin
Sampath5795-Mar-18 18:41
Sampath5795-Mar-18 18:41 
GeneralRe: How to add tabs to CView Class? Pin
_Flaviu5-Mar-18 20:42
_Flaviu5-Mar-18 20:42 
GeneralRe: How to add tabs to CView Class? Pin
Sampath5795-Mar-18 20:43
Sampath5795-Mar-18 20:43 
GeneralRe: How to add tabs to CView Class? Pin
_Flaviu5-Mar-18 22:03
_Flaviu5-Mar-18 22:03 
GeneralRe: How to add tabs to CView Class? Pin
Sampath5795-Mar-18 22:51
Sampath5795-Mar-18 22:51 
GeneralRe: How to add tabs to CView Class? Pin
_Flaviu5-Mar-18 23:21
_Flaviu5-Mar-18 23:21 

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.