Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aevol-eukaryotes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
LUISELLI Juliette
aevol-eukaryotes
Commits
ae8e510e
Commit
ae8e510e
authored
1 year ago
by
David Parsons
Browse files
Options
Downloads
Patches
Plain Diff
switch to "auto fn() -> return_type" syntax
parent
531dc99b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/aevol_create.cpp
+4
-4
4 additions, 4 deletions
src/aevol_create.cpp
with
4 additions
and
4 deletions
src/aevol_create.cpp
+
4
−
4
View file @
ae8e510e
...
@@ -48,8 +48,8 @@ using namespace aevol;
...
@@ -48,8 +48,8 @@ using namespace aevol;
// Helper functions
// Helper functions
void
print_help
(
char
*
prog_path
);
void
print_help
(
char
*
prog_path
);
std
::
tuple
<
std
::
string
,
std
::
string
>
interpret_cmd_line_options
(
int
argc
,
char
*
argv
[]);
auto
interpret_cmd_line_options
(
int
argc
,
char
*
argv
[])
->
std
::
tuple
<
std
::
string
,
std
::
string
>
;
std
::
list
<
std
::
string
>
read_sequence_file
(
const
std
::
string
&
chromosome_file_name
);
auto
read_sequence_file
(
const
std
::
string
&
chromosome_file_name
)
->
std
::
list
<
std
::
string
>
;
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
const
auto
[
param_file_name
,
chromosome_file_name
]
=
interpret_cmd_line_options
(
argc
,
argv
);
const
auto
[
param_file_name
,
chromosome_file_name
]
=
interpret_cmd_line_options
(
argc
,
argv
);
...
@@ -121,7 +121,7 @@ void print_help(char* prog_path) {
...
@@ -121,7 +121,7 @@ void print_help(char* prog_path) {
printf
(
"
\t
load chromosome from given text file instead of generating it
\n
"
);
printf
(
"
\t
load chromosome from given text file instead of generating it
\n
"
);
}
}
std
::
tuple
<
std
::
string
,
std
::
string
>
interpret_cmd_line_options
(
int
argc
,
char
*
argv
[])
{
auto
interpret_cmd_line_options
(
int
argc
,
char
*
argv
[])
->
std
::
tuple
<
std
::
string
,
std
::
string
>
{
// Command-line option variables
// Command-line option variables
std
::
string
param_file_name
;
std
::
string
param_file_name
;
std
::
string
chromosome_file_name
;
std
::
string
chromosome_file_name
;
...
@@ -184,7 +184,7 @@ auto read_sequence(std::ifstream& chromosome_file, const std::string& chromosome
...
@@ -184,7 +184,7 @@ auto read_sequence(std::ifstream& chromosome_file, const std::string& chromosome
return
chromosome
;
return
chromosome
;
}
}
std
::
list
<
std
::
string
>
read_sequence_file
(
const
std
::
string
&
chromosome_file_name
)
{
auto
read_sequence_file
(
const
std
::
string
&
chromosome_file_name
)
->
std
::
list
<
std
::
string
>
{
assert
(
chromosome_file_name
.
length
()
!=
0
);
assert
(
chromosome_file_name
.
length
()
!=
0
);
std
::
list
<
std
::
string
>
chromosomes
;
std
::
list
<
std
::
string
>
chromosomes
;
...
...
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