https://github.com/certik/rcp
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/certik/rcp
- Owner: certik
- Created: 2010-09-08T00:00:38.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-09-27T06:20:34.000Z (almost 16 years ago)
- Last Synced: 2025-02-01T20:13:27.177Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 7.53 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
How to compile
--------------
::
$ cmake .
$ make
How to test
-----------
Look into the
`main.cpp `_
first to see what it is doing, then compile it and run it::
$ cd examples/rcp
$ ./rcp
A.test(), a=0
terminate called after throwing an instance of 'Teuchos::NullReferenceError'
what(): /home/ondrej/repos/rcp/src/Teuchos_RCPNode.cpp:707:
Throw number = 1
Throw test that evaluated to true: true
Traceback (most recent call last):
File "??", line 0, in _start()
File "/build/buildd/eglibc-2.11.1/csu/libc-start.c", line 226, in __libc_start_main()
File "/home/ondrej/repos/rcp/examples/rcp/main.cpp", line 39, in main()
b->test();
File "/home/ondrej/repos/rcp/src/Teuchos_RCP.hpp", line 259, in Teuchos::RCP::operator->() const
debug_assert_not_null();
File "/home/ondrej/repos/rcp/src/Teuchos_RCPDecl.hpp", line 806, in Teuchos::RCP::debug_assert_not_null() const
assert_not_null();
File "/home/ondrej/repos/rcp/src/Teuchos_RCP.hpp", line 428, in Teuchos::RCP::assert_not_null() const
throw_null_ptr_error(typeName(*this));
File "/home/ondrej/repos/rcp/src/Teuchos_RCPNode.cpp", line 704, in Teuchos::throw_null_ptr_error(std::string const&)
TEST_FOR_EXCEPTION(
File "/home/ondrej/repos/rcp/src/stacktrace.cpp", line 322, in get_backtrace()
size = backtrace(array, 100);
Teuchos::RCP : You can not call operator->() or operator*() if getRawPtr()==0!
Aborted