Commit Graph

78 Commits

Author SHA1 Message Date
Andreas Fabri 38d063539a cleanup 2015-10-02 08:17:19 +02:00
Sébastien Loriot 8601e5ef0f move Kinetic examples 2015-08-26 17:27:09 +02:00
Andreas Fabri 67d72675fe split packages 2015-08-17 23:46:59 +02:00
Laurent Rineau 269ae1ca61 Fix the uses of std::basic_ios::bad(), and use fail() instead.
bad() implies fail() but std::basic_ios::operator! is actually equivalent
to std::basic_ios::fail(), not bad().

For example,
    std::ifstream is(argv[1]);
    if (is.bad()) {
is probably wrong because, in case the file does not exist, only the failbit it set,
and not the badbit.

Other example:
   double x;
   is >> x;
If the stream 'is' does not contains a string that can represent a double,
then failbit is set (and maybe the eofbit if the stream is actually too
short), but not the badbit.

bad() can be used, in case fail() returned true, to discriminate between a
I/O error and a logical error.

See:
  http://en.cppreference.com/w/cpp/io/basic_ios/operator_bool
  http://en.cppreference.com/w/cpp/io/ios_base/iostate
2013-12-12 16:13:40 +01:00
Laurent Rineau 75067bd072 Fix several I/O issues with Apple-clang-3.2 and its libc++ 2013-10-11 16:12:02 +02:00
Marc Glisse 6048b75e43 Typos. C++11 stream conversion to bool/void* changes. 2013-07-25 14:15:09 +02:00
Laurent Rineau d19578725b Fix warnings 2013-02-07 18:15:23 +01:00
Andreas Fabri 0a11128fc8 Remove extra ';' 2010-08-23 13:33:54 +00:00
Sylvain Pion e0a2006631 Remove semi-colon after main() function definition. 2009-12-12 14:32:20 +00:00
Daniel Russel a86384102a fix bad data path 2009-01-05 19:46:44 +00:00
Andreas Fabri 2989bd1953 Renamed examples in order to get unique names 2008-12-12 10:54:06 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Sylvain Pion 0ffeb44254 Add qualification needed by g++ 4.3. 2007-10-27 08:39:56 +00:00
Daniel Russel 5684bc8d55 removed variadic macro 2007-10-04 11:14:00 +00:00
Daniel Russel 6ade9c0a47 need full function call now 2007-06-15 20:55:31 +00:00
Daniel Russel 53eb88d003 some changes had gotten lost with regards to Listeners 2007-06-14 18:55:37 +00:00
Daniel Russel 09bed49916 odds and sods 2007-06-11 22:36:51 +00:00
Daniel Russel 7d9a1eaf8c libCGAL builds 2007-06-10 23:46:47 +00:00
Daniel Russel ccc339c225 remove #defines 2007-03-28 05:42:39 +00:00
Daniel Russel 63778b5594 try to turn off vc warning about this 2007-03-27 21:26:40 +00:00
Daniel Russel 953689b7dc test for VC before disabling warning 2007-03-26 22:28:18 +00:00
Daniel Russel 663a968a61 rename Instant_kernel to Default_instantnaeous_kernel to please new g++ 2007-03-26 22:17:39 +00:00
Andreas Fabri 64d93d66fd Removed unused parameter 2007-03-23 07:35:32 +00:00
Sylvain Pion 847c23a15e Removing leading and trailing empty lines from all example files.
Using the following Perl script:
-----------------------------------------------------
#!/usr/bin/perl

local($/) = undef;
my $text = <>;

$text =~ s/\A\n+//mg;
$text =~ s/\n+\Z/\n/mg;

print "$text";
-----------------------------------------------------
2007-03-10 16:17:17 +00:00
Sylvain Pion 6fb5cb906b Remove trailing white spaces and end of lines.
(using : perl -pi.bak -e 's/\s+$/\n/' */examples/*/*.cpp )
2007-03-10 14:59:41 +00:00
Andreas Meyer 932a105978 added missing example (it's empty, just to make the manual tools happy) 2007-02-20 13:54:58 +00:00
Daniel Russel 87d15b9189 restored original 2007-02-13 19:55:09 +00:00
Daniel Russel 741b21116d disabled some warnings and fixed walking off start of std::list 2007-02-13 19:27:34 +00:00
Daniel Russel b327b7c756 removed references to removed bit 2007-02-07 16:30:50 +00:00
Daniel Russel 238f8df4b4 minor tweaks 2007-01-30 02:06:49 +00:00
Daniel Russel 5e30af4a00 missing return in Sturm 2007-01-26 01:53:00 +00:00
Daniel Russel d18128c6d1 Oops, missed updating this one 2007-01-25 01:58:17 +00:00
Daniel Russel deb0ad36b8 added random check 2007-01-24 19:11:31 +00:00
Daniel Russel 6cc8fa0fbc examples now compile 2007-01-24 17:24:32 +00:00
Daniel Russel e28894d30a cleaned up names in KK and FK 2007-01-22 18:36:00 +00:00
Daniel Russel 6180995091 fixed audit bug 2007-01-22 01:15:48 +00:00
Daniel Russel 40a247c721 hid things 2007-01-20 21:44:11 +00:00
Daniel Russel 43cf28218c core working 2007-01-20 21:39:01 +00:00
Daniel Russel 02ccc9c36f before trying to clean things up for new number type stuff 2007-01-18 23:26:44 +00:00
Daniel Russel 786d732925 about to add hybrid moveall/static method 2006-11-11 22:41:08 +00:00
Daniel Russel fa295ec3cd Newton working well and everything else working. Will remove old solver to clean things up 2006-11-06 23:57:15 +00:00
Daniel Russel bb404b1b71 only check until motions change 2006-10-18 16:51:59 +00:00
Daniel Russel af905f81a2 updating works well, about try remove locking of points 2006-10-18 00:39:13 +00:00
Andreas Fabri 36e412ce38 Suppress warning for MSVC about 'using this' 2006-09-27 20:14:48 +00:00
Daniel Russel d8a7da8a8c minor changes 2006-07-24 15:53:06 +00:00
Daniel Russel cf0ce01b84 added some more interesting (degenerate) curves 2006-07-13 14:50:33 +00:00