From c106259517d7693ea8e24564bc890fe575d5edcd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Jan 2015 14:11:14 +0200 Subject: Implement rule chaining for cxx::link --- build/path | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'build/path') diff --git a/build/path b/build/path index dbd048d..49d543c 100644 --- a/build/path +++ b/build/path @@ -304,6 +304,12 @@ namespace build return basic_path (path_ + s); } + basic_path + operator+ (C c) const + { + return basic_path (path_ + c); + } + basic_path& operator+= (string_type const& s) { @@ -311,6 +317,13 @@ namespace build return *this; } + basic_path& + operator+= (C c) + { + path_ += c; + return *this; + } + // Note that comparison is case-insensitive if the filesystem is // not case-sensitive (e.g., Windows). // -- cgit v1.1