Yeah, sure enough, it was just the compiler - I upgraded and now everything
I checked runs
( no mystery deaths ) and I even get a throw from the offensive assertion
that I can
catch properly. As cygwin setup closed with literally 10's of Dr. Watson
dialog boxes I
thought I had made a mistake but turned out to be easy to fix- at least I
feel justified
in making an upgrade a last resort :)
myboost.cpp144 Error code 2 at 0
myboost.cpp145(?<=GU.*?TACTAAC.{20,40}AG|^).*?(?=GU.*?TACTAAC.{20,40}AG|$)
catch ( boost::regex_error e)
{ es< From: "John Maddock" Mike Marchywka wrote: This hangs ( I thought it may be a repetition problem but reliably
hits on this data/regex combo first pass): Not for me: it works just fine here, my complete test program is below,
tested with cygwin g++ 3.4.4, and the version of Boost that's downloadable
with cygwin: g++ -I /usr/include/boost-1_33_1 t.cpp -lboost_regex-gcc-mt t.cpp: #include int main()
{
try{
boost::regex e("ATG(...)*?(TAG|TAA|TGA)");
const char* s =
"GAGATATTCACCTCTCATTGCCTTTTCCAGAGGTTGTTGAACTTAGTGGCCTGAGCATTTTA" "TCTGCAAAATGACTAGCAATTTTTTTTTAAGTTTCAGGCTTTTTTAATGCCCTAAATACAGTTGATCCATTACCGAGTGT" "GTTACATGCATAGGAATTTACTGATCTTTTCTTTTCCCCCTAGCTAGTTTTAAAGTTACTGAGCATAACGAGCTTTAAAA" "ATTCTTCAGAATACAAATAAATGAATAGATAAAAGACTACCTCCATTTGATAAATCATTCAAGAAAAAGAAAAAAAAACT" "TGAGCAAGCTAAGAAAGTCATTAACAGCCATATTTCTGATGGAACTAATGTxGATACCTACTCAAGCTAxCACTxGAATC"
"TAATAATCTGTGAGAGAAGAAATGGGAAAAGGTATGAAAGC"; boost::cregex_iterator a(s, s+strlen(s), e), b;
while(a != b)
{
std::cout << *a << std::endl;
++a;
}
}
catch(boost::regex_error e)
{
std::cout << e.what() << std::endl;
}
catch(std::exception e)
{
std::cout << e.what() << std::endl;
}
} So I still think that you have issues with your binary install, or build
method or something. At this stage I'd recomend you rebuild the regex binaries using whatever
build options you are using: the exception problem is strongly indicating
that there is a binary incompatibity problem somewhere. HTH, John. _______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users _________________________________________________________________
Get a FREE Web site and more from Microsoft Office Live Small Business!
http://clk.atdmt.com/MRT/go/aub0930004958mrt/direct/01/