These are the Mermaid versions of the diagrams I created for my https://stackoverflow.com/q/68229841/1800052 question.
gitGraph
commit
commit id: "A"
branch feature1
commit id: "B"
commit id: "C"
These are the Mermaid versions of the diagrams I created for my https://stackoverflow.com/q/68229841/1800052 question.
gitGraph
commit
commit id: "A"
branch feature1
commit id: "B"
commit id: "C"
// g++ -std=c++14 -c mem_fn.cpp | |
#include <vector> | |
#include <functional> | |
#include <algorithm> | |
using namespace std; | |
struct A { | |
int& getAttribute(); | |
const int& getAttribute() const; |
// g++ -std=c++14 -c mem_fn.cpp | |
// | |
// /usr/include/c++/7/bits/stl_algo.h:4306:24: | |
// error: no match for call to ‘(std::_Mem_fn<int& (A::*)()>) (const A&)’ | |
// | |
// /usr/include/c++/7/functional:174:27: | |
// error: no matching function for call to ‘__invoke(int& (A::* const&)(), const A&)’ | |
// | |
// /usr/include/c++/7/bits/invoke.h:89:5: | |
// error: no type named ‘type’ in ‘struct std::__invoke_result<int& (A::* const&)(), const A&>’ |
// g++ -std=c++14 -c mem_fn.cpp | |
#include <vector> | |
#include <functional> | |
#include <algorithm> | |
using namespace std; | |
struct A { | |
const int& getAttribute() const; | |
}; |
// g++ -std=c++14 -c mem_fn.cpp | |
// | |
// error: no matching function for call to ‘mem_fn(<unresolved overloaded function type>)’ | |
#include <vector> | |
#include <functional> | |
#include <algorithm> | |
using namespace std; | |
struct A { |
Compile and run TestApplication.java with py4j.jar in your classpath.
Then execute python3 test.py
This creates three pairs of GatewayServer and CallbackServer with different ports on both the Java and Python sides. Python is driving the communication by asking Java to print
integer, save :: num_calls = 0 | |
character(len=1024) :: file_suffix | |
num_calls = num_calls + 1 | |
write (file_suffix, "(I5.5)") num_calls | |
open(37, file='prefix_' // trim(file_suffix) // '.bin', form='unformatted') |
program uio | |
real :: a(10), b(12) | |
a(:) = 1 | |
b(:) = 2 | |
open(37, file='uio.bin', form='unformatted') | |
write(37) a, b | |
close(37) | |
open(37, file='uio.bin', form='unformatted') |
import java.util.Collection; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
public class IteratorRemove { | |
static public void main(String[] args) { | |
// Populate a collection | |
Collection<Integer> ll = new LinkedList<>(); | |
for (int i = 0; i < 10; ++i) { | |
ll.add(i); |
public class SpeakingEnum { | |
public static enum SPEAKING_ENUM { | |
SOME_VALUE, | |
SOME_OTHER_VALUE; | |
public void speak() { | |
System.out.println("this=" + this); | |
} | |
} |