diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-22 13:46:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-22 13:46:17 +0200 |
commit | 69c333f31373177f6809ef4532f9c0c73a1a8148 (patch) | |
tree | f50fed2035fd84ed29359a6811640ed6c7ed7826 | |
parent | 738050f2a71b2f0d094a692cc48c94653b82287f (diff) |
Minor code cleanups
-rw-r--r-- | bpkg/package | 8 | ||||
-rw-r--r-- | bpkg/package.cxx | 1 | ||||
-rw-r--r-- | bpkg/package.ixx | 17 |
3 files changed, 20 insertions, 6 deletions
diff --git a/bpkg/package b/bpkg/package index 34d917e..f387d35 100644 --- a/bpkg/package +++ b/bpkg/package @@ -159,11 +159,7 @@ namespace bpkg std::uint16_t revision; package_version_id () = default; - package_version_id (string n, const version& v) - : name (move (n)), - epoch (v.epoch ()), - upstream (v.canonical_upstream ()), - revision (v.revision ()) {} + package_version_id (string, const version&); #pragma db member(epoch) column("version_epoch") #pragma db member(upstream) column("version_upstream") @@ -316,4 +312,6 @@ namespace bpkg }; } +#include <bpkg/package.ixx> + #endif // BPKG_PACKAGE diff --git a/bpkg/package.cxx b/bpkg/package.cxx index e955a3f..1862fe4 100644 --- a/bpkg/package.cxx +++ b/bpkg/package.cxx @@ -4,7 +4,6 @@ #include <bpkg/package> -#include <cassert> #include <stdexcept> // invalid_argument using namespace std; diff --git a/bpkg/package.ixx b/bpkg/package.ixx new file mode 100644 index 0000000..79cb0b1 --- /dev/null +++ b/bpkg/package.ixx @@ -0,0 +1,17 @@ +// file : bpkg/package.ixx -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +namespace bpkg +{ + // package_version_id + // + inline package_version_id:: + package_version_id (string n, const version& v) + : name (move (n)), + epoch (v.epoch ()), + upstream (v.canonical_upstream ()), + revision (v.revision ()) + { + } +} |