Commit d6c43300 authored by Roland Levillain's avatar Roland Levillain
Browse files

Add static assertions to oln::topo_bbox_ and oln::topo_lbbox_.

	* oln/core/gen/topo_bbox.hh (oln::topo_bbox_<point>)
	* oln/core/gen/topo_lbbox.hh (oln::topo_lbbox_<point>): Ensure
	parameter point is an oln::abstract::point.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@621 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 9baaa495
2006-10-12 Roland Levillain <roland@lrde.epita.fr>
Add static assertions to oln::topo_bbox_ and oln::topo_lbbox_.
* oln/core/gen/topo_bbox.hh (oln::topo_bbox_<point>)
* oln/core/gen/topo_lbbox.hh (oln::topo_lbbox_<point>): Ensure
parameter point is an oln::abstract::point.
2006-10-11 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>
Add new facilities to access to components such as row, col, etc.
......
......@@ -60,7 +60,9 @@ namespace oln
/// Bounding box topology based on a point class.
template <typename point>
class topo_bbox_ : public topology_entry< topo_bbox_<point> >
class topo_bbox_ :
public topology_entry< topo_bbox_<point> >,
private mlc::assert_< mlc_is_a(point, abstract::point) >
{
typedef topo_bbox_<point> self_t;
typedef topology_entry<self_t> super_t;
......
......@@ -62,7 +62,9 @@ namespace oln
/// Bounding box topology based on a point class.
template <typename point>
class topo_lbbox_ : public topology_entry< topo_lbbox_<point> >
class topo_lbbox_ :
public topology_entry< topo_lbbox_<point> >,
private mlc::assert_< mlc_is_a(point, abstract::point) >
{
typedef bbox_<point> bbox_t;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment