Skip to content

Commit

Permalink
update capabilities in doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultLejemble committed Feb 28, 2024
1 parent 709a911 commit a28ebf7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions doc/examples/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ namespace Ponca {
class ComputationalObjectConcept
{
protected:
enum {
Check = PROVIDES_CAPABILITY_1 && PROVIDES_CAPABILITY_2 //< List of required capabilities
PROVIDES_CAPABILITY, //< List of provided capabilities
};
REQUIRES(CAPABILITY_1); //< List of required capabilities
REQUIRES(CAPABILITY_2);
PROVIDES(CAPABILITY); //< List of provided capabilities

public:
using Scalar = typename DataPoint::Scalar; //< Inherited scalar type
Expand Down Expand Up @@ -73,10 +72,9 @@ namespace Ponca {
class ComputationalDerivativesConcept
{
protected:
enum {
Check = PROVIDES_CAPABILITY_1 && PROVIDES_CAPABILITY_2 //< List of required capabilities
PROVIDES_CAPABILITY, //< List of provided capabilities
};
REQUIRES(CAPABILITY_1); //< List of required capabilities
REQUIRES(CAPABILITY_2);
PROVIDES(CAPABILITY); //< List of provided capabilities

public:
using Scalar = typename DataPoint::Scalar; //< Inherited scalar type
Expand Down

0 comments on commit a28ebf7

Please sign in to comment.