$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Nicholas Clark (clark_at_[hidden])
Date: 2008-04-18 14:54:58
I just received a huge application that uses boost for just about
everything.  I am receiving a debug assertion when trying to add program
descriptions.  To help isolate the error I have built a very simple example
and am still getting the crash.  For reference I am using boost 1.32.  When
I moved to any of the newer versions of boost this specific error goes away
but I rack up a list of compiler errors a mile long.  I am trying to fix
this issue without moving to a newer version of boost because this is a
legacy application and we have a minimum amount of time/budget.  
 
The last compiled version delivered by the old contractor does not have this
error.  This previous version was built with VS71 but we are using VS80
(with SP2) . could this be the difference?
 
#include <boost/program_options.hpp>
 
namespace po = boost::program_options;
 
using namespace std;
using namespace boost::program_options;
 
int _tmain(int argc, _TCHAR* argv[])
{
      po::options_description desc("Allowed options");
      desc.add_options()
            ("help,H", "produce help message")
            ;
      return 0;
}
 
Again a debug assert is triggered when calling 'add_options' with boost 1.32
but not in newer version using VS80 with SP2.
 
Thanks!
Nick
 
--------------------------------------------------- 
 
Nicholas Clark (Nick)
Sr. Computer Scientist
ReallaeR, LLC ( <http://www.reallaer.com/> www.ReallaeR.com)
 
(800) 816-1913 ext.316
 <mailto:clark_at_[hidden]> clark_at_[hidden]