Skip to content

Commit

Permalink
Initial commit of refactored multi_span originating from the Microsof…
Browse files Browse the repository at this point in the history
…t GSL
  • Loading branch information
Jack Diver committed Oct 10, 2019
0 parents commit 2eb32b2
Show file tree
Hide file tree
Showing 14 changed files with 5,199 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build --symlink_prefix=bazel-build/
build --cxxopt='-std=c++14'

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.swp
bazel-out
bazel-build
9 changes: 9 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cc_library(
name = "multi_span",
hdrs = glob(["include/**/*"]),
include_prefix = "stdex",
strip_include_prefix = "include/stdex",
visibility = [
"//visibility:public",
],
)
10 changes: 10 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Keep aligned with tests/CMakeLists.txt
http_archive(
name = "catch2",
build_file = "//third_party:BUILD.catch2",
sha256 = "5f31b93712e65d363f257ad0f0c02cfbed7a3988979d5f320ad7771e513d4cc8",
strip_prefix = "Catch2-2.0.1",
urls = ["https://github.com/catchorg/Catch2/archive/v2.0.1.tar.gz"],
)
22 changes: 22 additions & 0 deletions include/stdex/multi_span
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
///////////////////////////////////////////////////////////////////////////////
//
// Maintained by Jack Diver.
//
// Modified from :-
//
// github.com/microsoft/GSL
//
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
///////////////////////////////////////////////////////////////////////////////

#include "multi_span.hpp"
Loading

0 comments on commit 2eb32b2

Please sign in to comment.