aboutsummaryrefslogtreecommitdiff
path: root/build2/cli/target
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cli/target')
-rw-r--r--build2/cli/target17
1 files changed, 8 insertions, 9 deletions
diff --git a/build2/cli/target b/build2/cli/target
index c10e4b8..5e51bb4 100644
--- a/build2/cli/target
+++ b/build2/cli/target
@@ -26,13 +26,13 @@ namespace build2
virtual const target_type& dynamic_type () const {return static_type;}
};
- // Standard layout type compatible with target*[3].
+ // Standard layout type compatible with group_view's const target*[3].
//
struct cli_cxx_members
{
- const_ptr<cxx::hxx> h = nullptr;
- const_ptr<cxx::cxx> c = nullptr;
- const_ptr<cxx::ixx> i = nullptr;
+ const cxx::hxx* h = nullptr;
+ const cxx::cxx* c = nullptr;
+ const cxx::ixx* i = nullptr;
};
class cli_cxx: public mtime_target, public cli_cxx_members
@@ -41,14 +41,13 @@ namespace build2
using mtime_target::mtime_target;
virtual group_view
- group_members (action_type);
-
- virtual timestamp
- load_mtime () const;
+ group_members (action_type) const override;
public:
static const target_type static_type;
- virtual const target_type& dynamic_type () const {return static_type;}
+
+ virtual const target_type&
+ dynamic_type () const override {return static_type;}
};
}
}