So Xcode is adding a call to free() during a Debug compilation or linking that is giving Boost fits but i have no idea what it might be nor why though it very likely has something to do with debugging
I did search of this mailing list on "Boost", "Xcode", and "malloc" and found nothing which might mean few on this lsit are using Boost, it's something trivial and obvious except to me, or I didn't search thoroughly enough. I have seen some claims of this problem elsewhere in the net regarding other Boost modules--Unit test in particular.
So, essentially, I cannot use the Xcode debugger with any Debug target using the Boost Libraries and that's pretty limiting for the quantitative finance work I am doing. Anyone have any hints to help me narrow it down?
ATTACHMENTS
--------------------------------------
Here is the simple program:
#include <boost/regex.hpp>
#include <iostream>
#include <string>
int main()
{
std::string line;
boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" );
while (std::cin)
{
std::getline(std::cin, line);
boost::smatch matches;
if (boost::regex_match(line, matches, pat))
std::cout << matches[2] << std::endl;
}
}
My environment
----------------------
Xcode 3.2.1