Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GTMesh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tomáš Jakubec
GTMesh
Commits
6146ae1c
There was an error fetching the commit references. Please try again later.
Commit
6146ae1c
authored
5 years ago
by
Tomáš Jakubec
Browse files
Options
Downloads
Patches
Plain Diff
save of template build bug
parent
355a96b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TemplateTest/main.cpp
+50
-1
50 additions, 1 deletion
TemplateTest/main.cpp
Unstructured_mesh/Unstructured_mesh.pro.user
+1
-1
1 addition, 1 deletion
Unstructured_mesh/Unstructured_mesh.pro.user
with
51 additions
and
2 deletions
TemplateTest/main.cpp
+
50
−
1
View file @
6146ae1c
...
@@ -79,7 +79,7 @@ void testDebug() {
...
@@ -79,7 +79,7 @@ void testDebug() {
DBGVAR
(
Detail
::
is_indexable
<
decltype
(
vert
)
>::
value
);
DBGVAR
(
Detail
::
is_indexable
<
decltype
(
vert
)
>::
value
);
Subelement
<
size_t
>
s
({
1
,
true
});
Subelement
<
size_t
>
s
({
1
});
DBGVAR
(
s
);
DBGVAR
(
s
);
HTMLDBGVAR
(
r
,
i
,
c
,
list
,
vec
,
b
,
m
);
HTMLDBGVAR
(
r
,
i
,
c
,
list
,
vec
,
b
,
m
);
...
@@ -492,3 +492,52 @@ int main()
...
@@ -492,3 +492,52 @@ int main()
*/
*/
return
0
;
return
0
;
}
}
/** GCC error
#include <iostream>
#include <string>
struct mem{
std::string s;
mem(){std::cout <<"mem constructor: " << s << std::endl;}
};
template<typename statMem>
class C1_wrong {
public:
static statMem s;
C1_wrong(){
s.s = "hello";
std::cout << "C1_wrong s.s: " << s.s << std::endl;
}
static std::string& getS() {return s.s;}
};
template <typename statMem> statMem C1_wrong<statMem>::s;
template <typename dummy>
class C2_wrong {
public:
static C1_wrong<mem> c;
C2_wrong() {std::cout << "C2_wrong constructor c.getS(): " << c.getS() << std::endl;}
};
template <typename dummy> C1_wrong<mem> C2_wrong<dummy>::c;
void testConstrucorOrder() {
std::cout << "global value of C2: " << C2_wrong<void>::c.getS() << std::endl;
}
int main()
{
testConstrucorOrder();
}
*/
This diff is collapsed.
Click to expand it.
Unstructured_mesh/Unstructured_mesh.pro.user
+
1
−
1
View file @
6146ae1c
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2019-11-
09T23:11:25
. -->
<!-- Written by QtCreator 4.10.0, 2019-11-
10T13:53:17
. -->
<qtcreator>
<qtcreator>
<data>
<data>
<variable>
EnvironmentId
</variable>
<variable>
EnvironmentId
</variable>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment