Skip to content

Instantly share code, notes, and snippets.

diff --git a/Triangulation_2/test/Triangulation_2/test_infinite_vertex_coordinates_for_T2.cpp b/Triangulation_2/test/Triangulation_2/test_infinite_vertex_coordinates_for_T2.cpp
index 88b9deb..6857428 100644
--- a/Triangulation_2/test/Triangulation_2/test_infinite_vertex_coordinates_for_T2.cpp
+++ b/Triangulation_2/test/Triangulation_2/test_infinite_vertex_coordinates_for_T2.cpp
@@ -3,19 +3,20 @@
#include <CGAL/Regular_triangulation_euclidean_traits_2.h>
#include <CGAL/_test_types.h>
#include <CGAL/Simple_cartesian.h>
+#include <boost/math/special_functions/fpclassify.hpp>
#include <cmath>
diff --git a/Triangulation_2/include/CGAL/Triangulation_2.h b/Triangulation_2/include/CGAL/Triangulation_2.h
index 204e113..3ce6bea 100644
--- a/Triangulation_2/include/CGAL/Triangulation_2.h
+++ b/Triangulation_2/include/CGAL/Triangulation_2.h
@@ -592,7 +592,7 @@ private:
const double nan =
std::numeric_limits<typename Kernel::FT>::quiet_NaN();
this->_infinite_vertex->set_point(CGAL::Point_2<Kernel>(nan, nan));
- };
+ }
(require 'url)
(defun get-and-parse-json (url)
(interactive)
(with-current-buffer (url-retrieve-synchronously url)
(goto-char (point-min))
(re-search-forward "^$")
(json-read)))
(defun get-movie-json (title &optional year)
integration:
Triangulation construction :
#pts Time
100 0.000443
1000 0.00538
10000 0.0602
100000 0.61
master:
Triangulation construction :
template <typename Construction, typename Dummy = boost::none_t>
struct Lazy_wrapper_traits :
boost::mpl::eval_if< internal::Has_result_type<Construction>,
boost::mpl::eval_if< boost::is_same< typename boost::remove_cv<
typename boost::remove_reference<
typename internal::Lazy_result_type<Construction>::type
>::type >::type,
typename Approximate_kernel::FT>,
boost::mpl::int_<NT>,
boost::mpl::eval_if< boost::is_same< typename internal::Lazy_result_type<Construction>::type,
@bo0ts
bo0ts / *gitattributes*.txt
Created December 3, 2012 16:46
CGAL gitattributes
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.cpp text
*.c text
*.h text
*.tex text
#include <iostream>
#include <boost/thread/thread.hpp>
#include <boost/asio/placeholders.hpp>
#include <boost/asio/deadline_timer.hpp>
class TimerThing
{
protected:
boost::asio::deadline_timer* statusTimer_;
boost::thread_group worker_threads_;
#include <boost/mpl/vector/vector10.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/at.hpp>
#include <boost/type_traits/is_integral.hpp>
#include <boost/type_traits/is_reference.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/static_assert.hpp>
#include <iostream>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/allocators/allocator.hpp>
#include <iostream>
using namespace boost::interprocess;
struct shm_remove {
@bo0ts
bo0ts / movie.el
Created October 23, 2012 21:27
Query IMDB and parse the result into org-mode
(require 'url)
(defun get-and-parse-json (url)
(interactive)
(with-current-buffer (url-retrieve-synchronously url)
(goto-char (point-min))
(re-search-forward "^$")
(json-read)))
(defun get-movie-json (title &optional year)